AsyncWallpaper class

Constructors

AsyncWallpaper()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

platformVersion Future<String?>
Function to check working/validity of method channels
no setter

Static Methods

setLiveWallpaper({required String filePath, bool goToHome = false, ToastDetails? toastDetails, ToastDetails? errorToastDetails}) Future<bool>
Function takes input live file path, and shows live wallpaper activity You can also set the bool goToHome to instruct the app to take the user to the home screen to show the set wallpaper. If wallpaper set fails, user won't be taken to home screen.
setWallpaper({required String url, int wallpaperLocation = BOTH_SCREENS, bool goToHome = false, ToastDetails? toastDetails, ToastDetails? errorToastDetails}) Future<bool>
Function takes input url's image & location choice, and applies wallpaper depending on location choice You can also set the bool goToHome to instruct the app to take the user to the home screen to show the set wallpaper. If wallpaper set fails, user won't be taken to home screen.
setWallpaperFromFile({required String filePath, int wallpaperLocation = BOTH_SCREENS, bool goToHome = false, ToastDetails? toastDetails, ToastDetails? errorToastDetails}) Future<bool>
Function takes input image's file path & location choice, and applies wallpaper depending on location choice You can also set the bool goToHome to instruct the app to take the user to the home screen to show the set wallpaper. If wallpaper set fails, user won't be taken to home screen.
setWallpaperFromFileNative({required String filePath, bool goToHome = false, ToastDetails? toastDetails, ToastDetails? errorToastDetails}) Future<bool>
Function takes input image file path, and opens wallpaper apply intent You can also set the bool goToHome to instruct the app to take the user to the home screen to show the set wallpaper. If wallpaper set fails, user won't be taken to home screen.
setWallpaperNative({required String url, bool goToHome = false, ToastDetails? toastDetails, ToastDetails? errorToastDetails}) Future<bool>
Function takes input url's image, and opens wallpaper apply intent You can also set the bool goToHome to instruct the app to take the user to the home screen to show the set wallpaper. If wallpaper set fails, user won't be taken to home screen.

Constants

BOTH_SCREENS → const int
Static code for both Home Screen and Lock Screen Wallpaper Choice
HOME_SCREEN → const int
Static code for Home Screen Wallpaper Choice
LOCK_SCREEN → const int
Static code for Lock Screen Wallpaper Choice