Język

ILocationButtonClient.OnSessionError(Throwable) Method

Definition

Called when an error occurs either during the creation of the location button session LocationButtonProvider#openSession or after the session is created.

[Android.Runtime.Register("onSessionError", "(Ljava/lang/Throwable;)V", "GetOnSessionError_Ljava_lang_Throwable_Handler:Android.App.PermissionUI.ILocationButtonClientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void OnSessionError(Java.Lang.Throwable cause);
[<Android.Runtime.Register("onSessionError", "(Ljava/lang/Throwable;)V", "GetOnSessionError_Ljava_lang_Throwable_Handler:Android.App.PermissionUI.ILocationButtonClientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member OnSessionError : Java.Lang.Throwable -> unit

Parameters

cause
Throwable

The Throwable that describes the reason for the failure.

Attributes

Remarks

Called when an error occurs either during the creation of the location button session LocationButtonProvider.openSession or after the session is created.

This may happen if the remote service encounters an unrecoverable issue or the connection is lost. The session is automatically closed before this callback is invoked, so the application does not need to call LocationButtonSession.close().

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

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