File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# capacitor-apps-list
22Capacitor plugin that provides list of installed apps on an Android device
33
4+ Each app constains the name, package name, category number and base64 encoded png icon.
5+
46## Install
57
68``` bash
@@ -35,6 +37,13 @@ export interface AndroidApp {
3537}
3638```
3739
40+ ### Displaying the icon
41+ To display the icon in your application, you can use the following code:
42+ ``` html
43+ <img [src] =" 'data:image/png;base64,' + app.base64Icon" alt =" app icon" />
44+ ```
45+ Where ` app ` is an object of type ` AndroidApp ` .
46+
3847## Important
3948This plugin uses the following permissions in your ` AndroidManifest.xml ` :
4049``` xml
Original file line number Diff line number Diff line change 11{
22 "name" : " capacitor-apps-list" ,
3- "version" : " 0.1" ,
3+ "version" : " 0.1.0 " ,
44 "description" : " Capacitor plugin that provides list of installed apps on an Android device" ,
55 "main" : " dist/plugin.cjs.js" ,
66 "module" : " dist/esm/index.js" ,
You can’t perform that action at this time.
0 commit comments