SetWallpaperDetails constructor

SetWallpaperDetails({
  1. ByteBuffer? data,
  2. String? url,
  3. required WallpaperLayout layout,
  4. required String filename,
  5. bool? thumbnail,
})

Implementation

SetWallpaperDetails({
  /// The jpeg or png encoded wallpaper image as an ArrayBuffer.
  ByteBuffer? data,

  /// The URL of the wallpaper to be set (can be relative).
  String? url,

  /// The supported wallpaper layouts.
  required WallpaperLayout layout,

  /// The file name of the saved wallpaper.
  required String filename,

  /// True if a 128x60 thumbnail should be generated. Layout and ratio are not
  /// supported yet.
  bool? thumbnail,
}) : _wrapped = $js.SetWallpaperDetails(
        data: data?.toJS,
        url: url,
        layout: layout.toJS,
        filename: filename,
        thumbnail: thumbnail,
      );