Language

SyncStateContract.Helpers.Insert Method

Definition

Submits an insert request containing an account's sync-state data.

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

Parameters

provider
ContentProviderClient

The client to which the sync-state write request is sent.

uri
Uri

The URI to which the provider insert request is sent.

account
Account

The account name and type to store with the sync-state data.

data
Byte[]

The binary sync-state payload placed in the provider's data column.

Returns

Uri

The URI returned by the provider for the insert request.

Attributes

Exceptions

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.

Applies to