语言

AuthenticationRequiredException(Throwable, PendingIntent) 构造函数

定义

创建准备引发的实例。

[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

参数

cause
Throwable

原始原因,设计为工程受众的详细信息。

userAction
PendingIntent

将启动恢复的主操作。 这必须启动一个预期要设置 Activity#setResult(int) 的活动,然后才能完成以传达恢复的最终状态。 例如,观察到 Activity#RESULT_OK 的应用可以选择立即重试其操作。

特性

注解

创建准备引发的实例。

Android 参考。android.app.AuthenticationRequiredException.AuthenticationRequiredException

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于