Skip to content

Most visited

Recently visited

navigation

ContactsContract.SyncState

public static final class ContactsContract.SyncState
extends Object implements SyncStateContract.Columns

java.lang.Object
   ↳ android.provider.ContactsContract.SyncState


A table provided for sync adapters to use for storing private sync state data for contacts.

See also:

Summary

Constants

String CONTENT_DIRECTORY

Inherited constants

From interface android.provider.SyncStateContract.Columns
From interface android.provider.BaseColumns

Fields

public static final Uri CONTENT_URI

The content:// style URI for this table

Public methods

static byte[] get(ContentProviderClient provider, Account account)
static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account)
static ContentProviderOperation newSetOperation(Account account, byte[] data)
static void set(ContentProviderClient provider, Account account, byte[] data)

Inherited methods

From class java.lang.Object

Constants

CONTENT_DIRECTORY

added in API level 5
String CONTENT_DIRECTORY

Constant Value: "syncstate"

Fields

CONTENT_URI

added in API level 5
Uri CONTENT_URI

The content:// style URI for this table

Public methods

get

added in API level 5
byte[] get (ContentProviderClient provider, 
                Account account)

Parameters
provider ContentProviderClient

account Account

Returns
byte[]

Throws
RemoteException

See also:

getWithUri

added in API level 5
Pair<Uri, byte[]> getWithUri (ContentProviderClient provider, 
                Account account)

Parameters
provider ContentProviderClient

account Account

Returns
Pair<Uri, byte[]>

Throws
RemoteException

See also:

newSetOperation

added in API level 5
ContentProviderOperation newSetOperation (Account account, 
                byte[] data)

Parameters
account Account

data byte

Returns
ContentProviderOperation

See also:

set

added in API level 5
void set (ContentProviderClient provider, 
                Account account, 
                byte[] data)

Parameters
provider ContentProviderClient

account Account

data byte

Throws
RemoteException

See also:

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)