MethodChannelWallpaperPlugin class

MethodChannel-backed implementation of WallpaperPluginPlatform.

Inheritance

Properties

hashCode → int
The hash code for this object.
no setterinherited
incomingChannel → MethodChannel
Native → Dart channel used to deliver an incoming image URI from an external "Use as → Wallpaper" intent.
final
methodChannel → MethodChannel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCapabilities() → Future<WallpaperCapabilities>
Returns the capabilities supported by the current platform.
override
getImageBytesFromUri(String uri) → Future<Uint8List?>
Reads the encoded image bytes referenced by a content:// uri, or returns null if it cannot be read.
override
getScreenInfo() → Future<WallpaperScreenInfo>
Returns basic screen / wallpaper information when reliably available.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setIncomingWallpaperHandler(IncomingWallpaperCallback? handler) → void
Registers a callback invoked when an external app (e.g. Photos/Gallery) hands this app an image via an Android ACTION_SET_WALLPAPER / ACTION_ATTACH_DATA intent carrying a content:// URI.
override
setWallpaperFromBytes(Uint8List bytes, WallpaperTarget target, {WallpaperFit? fit}) → Future<WallpaperResult>
Sets the wallpaper from raw image bytes.
override
setWallpaperFromFile(File file, WallpaperTarget target, {WallpaperFit? fit}) → Future<WallpaperResult>
Sets the wallpaper from an image file.
override
setWallpaperFromRepaintBoundary(GlobalKey<State<StatefulWidget>> boundaryKey, WallpaperTarget target, {double pixelRatio = 2.5, WallpaperFit? fit}) → Future<WallpaperResult>
Sets the wallpaper from a RepaintBoundary identified by boundaryKey.
override
setWallpaperFromUri(String uri, WallpaperTarget target, {WallpaperFit? fit}) → Future<WallpaperResult>
Sets the wallpaper from a content:// URI supplied by an external app.
override
setWallpaperFromUrl(String url, WallpaperTarget target, {WallpaperFit? fit}) → Future<WallpaperResult>
Sets the wallpaper from a network url.
override
toString() → String
A string representation of this object.
inherited
useAsImageFromRepaintBoundary(GlobalKey<State<StatefulWidget>> boundaryKey, {double pixelRatio = 2.5}) → Future<WallpaperResult>
Shares / uses an image captured from a RepaintBoundary.
override

Operators

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