ExtensionList: A tweak that can easily get a App Extension list.

ExtensionList is now on 'Bigboss'. click here
Reveal2Loader is now on 'Bigboss'. click here

ExtensionList (github) is inspired by Applist. So the basic rules to use this library is very similar. You can refer to Applist manual.

Differences in 'ALSectionDescriptors'

avaliable-extensions

The difference is that i removed the suppress-hidden-apps key for ALSectionDescriptors, because it's not appropriate for PlugIns. And I add a avaliable-extensions to filter only avaliable plugins that iOS version higher than the required iOS version. The default value for avaliable-extensions is true.

predicate

ExtensionList query an array of LSPlugInKitProxy instance, so the predicate key is apply on the property of LSPlugInKitProxy class. There is a property named protocol in the said class, which infers to the Apple private service ID. For example, if you want to filter Today-widget extension, put protocol contains 'com.apple.widget-extension' into predicate key.
For further infomation about App Extension and the protocol refered to, you can see the Apple Guides about App Extension. Or you can find it in the info.plist of *.appex. The value for key NSExtensionPointIdentifier is equal to protocol of LSPlugInKitProxy.

  • A demo of ALSectionDescriptors
ALSectionDescriptors = (
    {
        title = "Custom Keyboard";
        predicate = "protocol contains 'keyboard-service'";
        "icon-size" = 29;
        "cell-class-name" = ELSwitchCell;
        "avaliable-extensions" = 0;
    },
)
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容