getWallpaper property

Future<Uint8List> getWallpaper

This gets the current wallpaper on the user's device. This method needs the READ_EXTERNAL_STORAGE permission on Android Oreo & above.

Implementation

static Future<Uint8List> get getWallpaper async {
  debugPrint(
      "[LauncherHelper] External Storage Access permission might be needed for Android Oreo & above.");
  Uint8List data = await _channel.invokeMethod('getWallpaper');
  return data;
}