Language

SyncRequest.Builder.SetSyncAdapter(Account, String) Method

Definition

Specify an authority and account for this transfer.

[Android.Runtime.Register("setSyncAdapter", "(Landroid/accounts/Account;Ljava/lang/String;)Landroid/content/SyncRequest$Builder;", "GetSetSyncAdapter_Landroid_accounts_Account_Ljava_lang_String_Handler")]
public virtual Android.Content.SyncRequest.Builder? SetSyncAdapter(Android.Accounts.Account? account, string? authority);
[<Android.Runtime.Register("setSyncAdapter", "(Landroid/accounts/Account;Ljava/lang/String;)Landroid/content/SyncRequest$Builder;", "GetSetSyncAdapter_Landroid_accounts_Account_Ljava_lang_String_Handler")>]
abstract member SetSyncAdapter : Android.Accounts.Account * string -> Android.Content.SyncRequest.Builder
override this.SetSyncAdapter : Android.Accounts.Account * string -> Android.Content.SyncRequest.Builder

Parameters

account
Account

The account to sync. Can be null for a one-time sync; periodic syncs require an account.

authority
String

A String identifying the content provider to be synced.

Returns

This builder.

Attributes

Remarks

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.

Java documentation for android.content.SyncRequest.Builder.setSyncAdapter(android.accounts.Account, java.lang.String).

Applies to