SyncRequest.Builder.SetSyncAdapter(Account, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Account to sync. Can be null unless this is a periodic sync, for which verification by the ContentResolver will fail. If a sync is performed without an account, the
- authority
- String
A String identifying the content provider to be synced.
Returns
Specify an authority and account for this transfer.
- 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.