Dev:Cephei

Cephei is a framework that provides various convenience methods.

How to use this framework
Headers are available from Cephei’s Github project and the framework can be found at  on a device where Cephei is installed. Theos and Dragon both include the headers so you don’t have to worry about installing them!

Makefile
Add to your Makefile:

to the  variable.

Dragon
Add to your DragonMake file:

to the  variable in any module.

Packaging
Add to your package’s control file:

to the  field

Getting a tweak’s preferences
The HBPreferences class allows for easy access to preferences. Note: Cephei does not allow you to access most Apple preferences (preferences that have their identifier starting with ).

In order to have the  methods to automatically update, a notification, set to the preference identifier with   appended, needs be posted.

&lt;dict&gt; &lt;!-- Interesting preference cell --&gt; &lt;key&gt;PostNotification&lt;/key&gt; &lt;string&gt;com.example.ExamaplePreference/ReloadPrefs&lt;/string&gt; &lt;/dict&gt;

Converting hex color to UIColor
Cephei provides a method to easily convert CSS style hex color to UIColor.