Skip to content

Commit 21aac2a

Browse files
committed
updated readme and package.json version
1 parent 9b2c747 commit 21aac2a

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# capacitor-apps-list
22
Capacitor 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
3948
This plugin uses the following permissions in your `AndroidManifest.xml`:
4049
```xml

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

0 commit comments

Comments
 (0)