SyncStateContract.Helpers.Get(ContentProviderClient, Uri, Account) Method

Definition

Get the sync state that is associated with the account or null.

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

Parameters

provider
ContentProviderClient

the ContentProviderClient that is to be used to communicate with the android.content.ContentProvider that contains the sync state.

uri
Uri

the uri of the sync state

account
Account

the Account whose sync state should be returned

Returns

Byte[]

the sync state or null if there is no sync state associated with the account

Attributes

Exceptions

if there is a failure communicating with the remote ContentProvider

Remarks

Get the sync state that is associated with the account or null.

Java documentation for android.provider.SyncStateContract.Helpers.get(android.content.ContentProviderClient, android.net.Uri, android.accounts.Account).

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