Share via


SyncStateContract.Helpers.NewSetOperation(Uri, Account, Byte[]) Method

Definition

Creates and returns a ContentProviderOperation that assigns the data array as the sync state for the given account.

[Android.Runtime.Register("newSetOperation", "(Landroid/net/Uri;Landroid/accounts/Account;[B)Landroid/content/ContentProviderOperation;", "")]
public static Android.Content.ContentProviderOperation? NewSetOperation (Android.Net.Uri? uri, Android.Accounts.Account? account, byte[]? data);
[<Android.Runtime.Register("newSetOperation", "(Landroid/net/Uri;Landroid/accounts/Account;[B)Landroid/content/ContentProviderOperation;", "")>]
static member NewSetOperation : Android.Net.Uri * Android.Accounts.Account * byte[] -> Android.Content.ContentProviderOperation

Parameters

uri
Uri

the uri of the sync state

account
Account

the Account whose sync state should be set

data
Byte[]

the byte[] that contains the sync state

Returns

the new ContentProviderOperation that assigns the data array as the account's sync state

Attributes

Remarks

Creates and returns a ContentProviderOperation that assigns the data array as the sync state for the given account.

Java documentation for android.provider.SyncStateContract.Helpers.newSetOperation(android.net.Uri, android.accounts.Account, byte[]).

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