語言

AbstractThreadedSyncAdapter.OnSecurityException 方法

定義

報告在呼叫 #onPerformSync前開啟內容提供者時出現安全例外。

[Android.Runtime.Register("onSecurityException", "(Landroid/accounts/Account;Landroid/os/Bundle;Ljava/lang/String;Landroid/content/SyncResult;)V", "GetOnSecurityException_Landroid_accounts_Account_Landroid_os_Bundle_Ljava_lang_String_Landroid_content_SyncResult_Handler", ApiSince=23)]
public virtual void OnSecurityException(Android.Accounts.Account? account, Android.OS.Bundle? extras, string? authority, Android.Content.SyncResult? syncResult);
[<Android.Runtime.Register("onSecurityException", "(Landroid/accounts/Account;Landroid/os/Bundle;Ljava/lang/String;Landroid/content/SyncResult;)V", "GetOnSecurityException_Landroid_accounts_Account_Landroid_os_Bundle_Ljava_lang_String_Landroid_content_SyncResult_Handler", ApiSince=23)>]
abstract member OnSecurityException : Android.Accounts.Account * Android.OS.Bundle * string * Android.Content.SyncResult -> unit
override this.OnSecurityException : Android.Accounts.Account * Android.OS.Bundle * string * Android.Content.SyncResult -> unit

參數

account
Account

那個試圖同步的帳號

extras
Bundle

SyncAdapter 專用參數

authority
String

失敗同步請求的權限

syncResult
SyncResult

SyncAdapter 專用參數

屬性

備註

報告在呼叫 #onPerformSync前開啟內容提供者時出現安全例外。 這會被視為同步資料庫故障。

Java 文件 android.content.AbstractThreadedSyncAdapter.onSecurityException(android.accounts.Account, android.os.Bundle, java.lang.String, android.content.SyncResult)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於