次の方法で共有


AbstractThreadedSyncAdapter.OnPerformSync Method

Definition

Perform a sync for this account.

[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 (Android.Accounts.Account? account, Android.OS.Bundle? extras, string? authority, Android.Content.ContentProviderClient? provider, Android.Content.SyncResult? syncResult);
[<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")>]
abstract member OnPerformSync : Android.Accounts.Account * Android.OS.Bundle * string * Android.Content.ContentProviderClient * Android.Content.SyncResult -> unit

Parameters

account
Account

the account that should be synced

extras
Bundle

SyncAdapter-specific parameters

authority
String

the authority of this sync request

provider
ContentProviderClient

a ContentProviderClient that points to the ContentProvider for this authority

syncResult
SyncResult

SyncAdapter-specific parameters

Attributes

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.

Java documentation for android.content.AbstractThreadedSyncAdapter.onPerformSync(android.accounts.Account, android.os.Bundle, java.lang.String, android.content.ContentProviderClient, 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