Dev:AppList

AppList is a library for fetching app information. As described on its package page in Cydia: "Allows developers to query the list of installed apps and provide a preferences pane based on that information. Exports displayIdentifier, displayName, icon and smallIcon via a remote messaging center so that it's easy to write a prefs pane that presents a list of apps."

How to use this library
Headers are available from Applist's GitHub project and the library can be found at  on a device where AppList is installed. If using Theos, place the headers in, the library in.

Makefile
Add to your Makefile:


 * to the  variable.

Packaging
Add to your package's control file:


 * to the  field.

Simple Approach
The common way to use AppList is via its PreferenceLoader (preferences) integration, by putting entries in a PreferenceLoader plist: AppListSample.plist.

''To do: Add missing keys "listed" in the source code. Expand ALSectionDescriptors' usage like in Emphasize.''

The following specifier presents a  for Cydia and iFile, which present a   for a selection of options.

Retrieving Lists and Icons
To get an array of applications' bundle identifiers and their display names sorted in alphabetical order by their display name:

To get the display identifier and icon for a specific app at index, choose a size from this enum:

And use the following snippet:

As seen in ListLauncher7.

Retrieving Settings
As a filter, when using the simple selections (as single or switch options):

Usages in opensource projects

 * https://github.com/iceNuts/DisableNC-Switch
 * https://github.com/f41c0r/TinderStats-iOS