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."

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

To access the list of applications use the following:

Then to filter by enabled apps:

As seen in https://github.com/iceNuts/DisableNC-Switch

Without PreferenceLoader
To get an array of applications and their display identifiers, do the following: This gives you a list of all the apps in alphabetical order by their display name.

To get the display identifier and icon for a specific app at index  do the following:

As seen in https://github.com/twodayslate/ListLauncher7