A capacitor plugin for setting base64 images as wallpapers in android devices.
npm install wallpaper (not published but can be installed locally.)
npx cap sync
setWallpaper(options: WallpaperOptions) => Promise<void>
Sets the device wallpaper to a specific image.
Param | Type | Description |
---|---|---|
options |
WallpaperOptions |
the options containing the image details. |
Prop | Type | Description |
---|---|---|
base64 |
string |
The base64 data of the image. |
type |
'home' | 'lock' | 'both' |
In which parts the wallpaper will be set. |