Language

ILocationButtonSession.SetBackgroundColor(Color) Method

Definition

Sets the background color of the location button.

[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

Parameters

color
Color

The desired background color, as a ColorInt.

Attributes

Remarks

Sets the background color of the location button.

See LocationButtonRequest.Builder.setBackgroundColor(int) for input constraints.

Android reference for android.app.permissionui.LocationButtonSession.setBackgroundColor.

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