Android Guides | Samples

Android.Content.AbstractThreadedSyncAdapter.OnPerformSync Method

Perform a sync for this account.

Syntax

[Android.Runtime.Register("onPerformSync", "(Landroid/accounts/Account;Landroid/os/Bundle;Ljava/lang/String;Landroid/content/ContentProviderClient;Landroid/content/SyncResult;)V", "GetOnPerformSync_Landroid_accounts_Account_Landroid_os_Bundle_Ljava_lang_String_Landroid_content_ContentProviderClient_Landroid_content_SyncResult_Handler")]
public abstract Void OnPerformSync (Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult)

Parameters

account
the account that should be synced
extras
SyncAdapter-specific parameters
authority
the authority of this sync request
provider
a ContentProviderClient that points to the ContentProvider for this authority
syncResult
SyncAdapter-specific parameters

Remarks

Perform a sync for this account. SyncAdapter-specific parameters may be specified in extras, which is guaranteed to not be null. Invocations of this method are guaranteed to be serialized.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5