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 includes the headers so you don’t have to worry about installing them!

Makefile
Add to your Makefile:

to the  variable.

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.