Language

WallpaperDescription.Builder.SetContent(PersistableBundle) Method

Definition

Set the additional content required to render this wallpaper.

[Android.Runtime.Register("setContent", "(Landroid/os/PersistableBundle;)Landroid/app/wallpaper/WallpaperDescription$Builder;", "", ApiSince=36)]
public Android.App.Wallpaper.WallpaperDescription.Builder SetContent(Android.OS.PersistableBundle content);
[<Android.Runtime.Register("setContent", "(Landroid/os/PersistableBundle;)Landroid/app/wallpaper/WallpaperDescription$Builder;", "", ApiSince=36)>]
member this.SetContent : Android.OS.PersistableBundle -> Android.App.Wallpaper.WallpaperDescription.Builder

Parameters

content
PersistableBundle

additional content, or an empty bundle for none

Returns

Attributes

Remarks

Set the additional content required to render this wallpaper.

When setting additional content (asset id, etc.), best practice is to set an ID as well. This allows WallpaperManager and other code to distinguish between different wallpapers handled by this component.

Android reference for android.app.wallpaper.WallpaperDescription.Builder.setContent.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to