Flipswitch: Difference between revisions

From iPhone Development Wiki
(Creation)
 
(Sections and where to go next "guides")
Line 1: Line 1:
{{Infobox Package
{{Infobox Package
|developer=Ryan Petrich and Jack Willis
|developer=[[User:Rpetrich|Ryan Petrich]], [[User:J W97|Jack Willis]]
|version=1.0.2
|version=1.0.2
|package=libflipswitch
|package=libflipswitch
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 ==
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.
''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. Default value is "prefs:".
== How to make a template bundle ==
''will extract information from [https://github.com/a3tweaks/Flipswitch/blob/master/FSSwitchPanel.m#L312 here]''


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


[[Category:Cydia_packages]]
[[Category:Cydia_packages]]

Revision as of 05:57, 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.

Source link: Flipswitch

how do I add a Content box here?

How to make a new switch

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

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. Default value is "prefs:".

How to make a template bundle

will extract information from here

This article is a stub. You can help iPhone Development wiki by expanding it.