Language

ILocationButtonSession.SurfacePackage Property

Definition

Returns the SurfaceControlViewHost.SurfacePackage containing the view for the location button.

public Android.Views.SurfaceControlViewHost.SurfacePackage SurfacePackage { [Android.Runtime.Register("getSurfacePackage", "()Landroid/view/SurfaceControlViewHost$SurfacePackage;", "GetGetSurfacePackageHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getSurfacePackage", "()Landroid/view/SurfaceControlViewHost$SurfacePackage;", "GetGetSurfacePackageHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
member this.SurfacePackage : Android.Views.SurfaceControlViewHost.SurfacePackage

Property Value

The surface package for the location button. This value cannot be null.

Attributes

Remarks

Returns the SurfaceControlViewHost.SurfacePackage containing the view for the location button.

The client can attach surface package to a SurfaceView in its view hierarchy to display the button. This allows the button's UI to be rendered by a trusted system process while being seamlessly integrated into the application's layout.

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

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