MethodChannelWallpaperPlugin class
MethodChannel-backed implementation of WallpaperPluginPlatform.
- Inheritance
-
- Object
- PlatformInterface
- WallpaperPluginPlatform
- MethodChannelWallpaperPlugin
Constructors
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 returnsnullif 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_DATAintent carrying acontent://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< boundaryKey, WallpaperTarget target, {double pixelRatio = 2.5, WallpaperFit? fit}) → Future<StatefulWidget> >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< boundaryKey, {double pixelRatio = 2.5}) → Future<StatefulWidget> >WallpaperResult> -
Shares / uses an image captured from a RepaintBoundary.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited