Android.App.WallpaperManager.SetStream Method
Change the current system wallpaper to a specific byte stream.

Syntax

[Android.Runtime.Register("setStream", "(Ljava/io/InputStream;)V", "GetSetStream_Ljava_io_InputStream_Handler")]
public virtual void SetStream (System.IO.Stream data)

Parameters

data
A stream containing the raw data to install as a wallpaper.

Exceptions

TypeReason
Java.IO.IOExceptionIf an error occurs reverting to the built-in wallpaper.

Remarks

Change the current system wallpaper to a specific byte stream. The give InputStream is copied into persistent storage and will now be used as the wallpaper. Currently it must be either a JPEG or PNG image. On success, the intent Android.Content.Intent.ActionWallpaperChanged is broadcast.

This method requires the caller to hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#SET_WALLPAPER.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5