Flipswitch: Difference between revisions

From iPhone Development Wiki
(Sections and where to go next "guides")
(the "table of contents" shows up automatically when there are enough sections; formatting)
Line 6: Line 6:


'''libflipswitch''' is a library used to implement a centralized toggle system.
'''libflipswitch''' is a library used to implement a centralized toggle system.
Source link: [https://github.com/a3tweaks/Flipswitch Flipswitch]
''how do I add a Content box here?''


== How to make a new switch ==
== How to make a new switch ==
Save [https://github.com/a3tweaks/Flipswitch/raw/master/NIC%20Template/iphone_flipswitch_switch.nic.tar this nic template] to $THEOS/templates/iphone directory and call $THEOS/bin/nic.pl to get a premade switch.
Save [https://github.com/a3tweaks/Flipswitch/raw/master/NIC%20Template/iphone_flipswitch_switch.nic.tar this NIC template] to the <code>$THEOS/templates/iphone</code> directory and call <code>$THEOS/bin/nic.pl</code> to get a premade switch.


''instructions about writing code''
''Add instructions about writing code.''


== Secondary action ==
== Secondary action ==
In the file Resources/Info.plist you can find the key "alternate-action-url" which will enable you to open a URI when the secondary action of the switch is invoked in case it is not implemented in code. Default value is "prefs:".
In the file <code>Resources/Info.plist</code> you can find the key "alternate-action-url", which will enable you to open a URI when the secondary action of the switch is invoked, in case it is not implemented in code. The default value is "prefs:".


== How to make a template bundle ==
== How to make a template bundle ==
''will extract information from [https://github.com/a3tweaks/Flipswitch/blob/master/FSSwitchPanel.m#L312 here]''
''Will extract information from [https://github.com/a3tweaks/Flipswitch/blob/master/FSSwitchPanel.m#L312 here]''
 
== External links ==


''This article is a stub. You can help iPhone Development wiki by [http://iphonedevwiki.net/index.php?title=Flipswitch&action=edit expanding it].''
* [https://github.com/a3tweaks/Flipswitch Flipswitch source code]


[[Category:Cydia_packages]]
[[Category:Cydia packages]]

Revision as of 22:10, 10 January 2014

Flipswitch
Cydia Package
Developer Ryan Petrich, Jack Willis
Package ID libflipswitch
Latest Version 1.0.2


libflipswitch is a library used to implement a centralized toggle system.

How to make a new switch

Save this NIC template to the $THEOS/templates/iphone directory and call $THEOS/bin/nic.pl to get a premade switch.

Add instructions about writing code.

Secondary action

In the file Resources/Info.plist you can find the key "alternate-action-url", which will enable you to open a URI when the secondary action of the switch is invoked, in case it is not implemented in code. The default value is "prefs:".

How to make a template bundle

Will extract information from here

External links