Language

ILocationButtonClient.OnSessionOpened(ILocationButtonSession) Method

Definition

Called when the location button session is successfully created.

[Android.Runtime.Register("onSessionOpened", "(Landroid/app/permissionui/LocationButtonSession;)V", "GetOnSessionOpened_Landroid_app_permissionui_LocationButtonSession_Handler:Android.App.PermissionUI.ILocationButtonClientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void OnSessionOpened(Android.App.PermissionUI.ILocationButtonSession session);
[<Android.Runtime.Register("onSessionOpened", "(Landroid/app/permissionui/LocationButtonSession;)V", "GetOnSessionOpened_Landroid_app_permissionui_LocationButtonSession_Handler:Android.App.PermissionUI.ILocationButtonClientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member OnSessionOpened : Android.App.PermissionUI.ILocationButtonSession -> unit

Parameters

session
ILocationButtonSession

The newly created session.

Attributes

Remarks

Called when the location button session is successfully created.

The client is responsible for calling LocationButtonSession.close() on the session when it is no longer needed to release system resources.

Android reference for android.app.permissionui.LocationButtonClient.onSessionOpened.

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