ILocationButtonSession.SetBackgroundColor(Color) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.