WallpaperManager.SendWallpaperCommand Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Envoyez une commande arbitraire au papier peint actif actuel.
[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
Paramètres
- windowToken
- IBinder
IBinder : fenêtre à laquelle ces décalages doivent être associés, comme retourné par View.getWindowToken().
- action
- String
Chaîne : nom de la commande à effectuer. Il doit s’agir d’un nom délimité pour éviter les collisions, telles que « com.mycompany.wallpaper.DOIT ».
- x
- Int32
int : argument entier arbitraire basé sur la commande.
- y
- Int32
int : argument entier arbitraire basé sur la commande.
- z
- Int32
int : argument entier arbitraire basé sur la commande.
- extras
- Bundle
Bundle : informations supplémentaires facultatives pour la commande ou null.
- Attributs
Remarques
Envoyez une commande arbitraire au papier peint actif actuel.
Référence Android pour android.app.WallpaperManager.sendWallpaperCommand.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.