WallpaperManager.SendWallpaperCommand Method

Definition

Send an arbitrary command to the current active wallpaper.

[Android.Runtime.Register("sendWallpaperCommand", "(Landroid/os/IBinder;Ljava/lang/String;IIILandroid/os/Bundle;)V", "GetSendWallpaperCommand_Landroid_os_IBinder_Ljava_lang_String_IIILandroid_os_Bundle_Handler")]
[Android.Runtime.RequiresPermission("android.permission.ALWAYS_UPDATE_WALLPAPER")]
public virtual void SendWallpaperCommand(Android.OS.IBinder? windowToken, string? action, int x, int y, int z, Android.OS.Bundle? extras);
[<Android.Runtime.Register("sendWallpaperCommand", "(Landroid/os/IBinder;Ljava/lang/String;IIILandroid/os/Bundle;)V", "GetSendWallpaperCommand_Landroid_os_IBinder_Ljava_lang_String_IIILandroid_os_Bundle_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.ALWAYS_UPDATE_WALLPAPER")>]
abstract member SendWallpaperCommand : Android.OS.IBinder * string * int * int * int * Android.OS.Bundle -> unit
override this.SendWallpaperCommand : Android.OS.IBinder * string * int * int * int * Android.OS.Bundle -> unit

Parameters

windowToken
IBinder

IBinder: The window who these offsets should be associated with, as returned by View.getWindowToken().

action
String

String: Name of the command to perform. This must be a scoped name to avoid collisions, such as "com.mycompany.wallpaper.DOIT".

x
Int32

int: Arbitrary integer argument based on command.

y
Int32

int: Arbitrary integer argument based on command.

z
Int32

int: Arbitrary integer argument based on command.

extras
Bundle

Bundle: Optional additional information for the command, or null.

Attributes

Remarks

Send an arbitrary command to the current active wallpaper.

Android reference for android.app.WallpaperManager.sendWallpaperCommand.

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