Sprache

ILocationButtonClient.OnSessionOpened(ILocationButtonSession) Methode

Definition

Wird aufgerufen, wenn die Standortschaltflächensitzung erfolgreich erstellt wurde.

[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

Parameter

session
ILocationButtonSession

Die neu erstellte Sitzung.

Attribute

Hinweise

Wird aufgerufen, wenn die Standortschaltflächensitzung erfolgreich erstellt wurde.

Der Client ist für das Aufrufen von LocationButtonSession.close() für die Sitzung verantwortlich, wenn es nicht mehr benötigt wird, um Systemressourcen freizugeben.

Android-Referenz für android.app.permissionui.LocationButtonClient.onSessionOpened.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: