Partager via


AuthenticationRequiredException(Throwable, PendingIntent) Constructor

Definition

Create an instance ready to be thrown.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;Landroid/app/PendingIntent;)V", "", ApiSince=26)]
public AuthenticationRequiredException (Java.Lang.Throwable? cause, Android.App.PendingIntent? userAction);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;Landroid/app/PendingIntent;)V", "", ApiSince=26)>]
new Android.App.AuthenticationRequiredException : Java.Lang.Throwable * Android.App.PendingIntent -> Android.App.AuthenticationRequiredException

Parameters

cause
Throwable

original cause with details designed for engineering audiences.

userAction
PendingIntent

primary action that will initiate the recovery. This must launch an activity that is expected to set Activity#setResult(int) before finishing to communicate the final status of the recovery. For example, apps that observe Activity#RESULT_OK may choose to immediately retry their operation.

Attributes

Remarks

Create an instance ready to be thrown.

Java documentation for android.app.AuthenticationRequiredException.AuthenticationRequiredException(java.lang.Throwable, android.app.PendingIntent).

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