Udostępnij za pośrednictwem


AbstractThreadedSyncAdapter.OnSecurityException Method

Definition

Report that there was a security exception when opening the content provider prior to calling #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

Parameters

account
Account

the account that attempted to sync

extras
Bundle

SyncAdapter-specific parameters

authority
String

the authority of the failed sync request

syncResult
SyncResult

SyncAdapter-specific parameters

Attributes

Remarks

Report that there was a security exception when opening the content provider prior to calling #onPerformSync. This will be treated as a sync database failure.

Java documentation for android.content.AbstractThreadedSyncAdapter.onSecurityException(android.accounts.Account, android.os.Bundle, java.lang.String, android.content.SyncResult).

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