/Wallpaper-PhoneGap-Plugin

This plugin allows a user to save an image residing in the application folder or from a remote URL into the internal storage of the device. It also allows to set the image as a wallpaper which includes saving the image into the storage of the device.

Primary LanguageJavaOtherNOASSERTION

Wallpaper-PhoneGap-Plugin

Set wallpapers on Android. Forked from https://github.com/PurpleMADcanada/Wallpaper-PhoneGap-Plugin.

Installation

cordova plugin add https://github.com/Menardi/Wallpaper-PhoneGap-Plugin

Usage

The plugin allows for the setting of the wallpaper on Android, using the setImage function.

window.wallpaper.setImage(path, successCb, errorCb);

path: The absolute path to the image. Can be local or remote. If local, ensure it begins with file:///android_asset/www/. successCb: Called upon successfully setting the wallpaper errorCb: Called with an error object as the argument if setting the wallpaper fails