Langue

ILocationButtonSession.SetBackgroundColor(Color) Méthode

Définition

Définit la couleur d’arrière-plan du bouton d’emplacement.

[Android.Runtime.Register("setBackgroundColor", "(I)V", "GetSetBackgroundColor_IHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void SetBackgroundColor(Android.Graphics.Color color);
[<Android.Runtime.Register("setBackgroundColor", "(I)V", "GetSetBackgroundColor_IHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member SetBackgroundColor : Android.Graphics.Color -> unit

Paramètres

color
Color

Couleur d’arrière-plan souhaitée, en tant que ColorInt.

Attributs

Remarques

Définit la couleur d’arrière-plan du bouton d’emplacement.

Consultez LocationButtonRequest.Builder.setBackgroundColor(int) pour connaître les contraintes d’entrée.

Référence Android pour android.app.permissionui.LocationButtonSession.setBackgroundColor.

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.

S’applique à