Stay organized with collections
Save and categorize content based on your preferences.
Helpers
class Helpers
Summary
Public methods |
static ByteArray! |
Get the sync state that is associated with the account or null.
|
static Pair<Uri!, ByteArray!>! |
|
static Uri! |
|
static ContentProviderOperation! |
Creates and returns a ContentProviderOperation that assigns the data array as the sync state for the given account.
|
static ContentProviderOperation! |
Creates and returns a ContentProviderOperation that assigns the data array as the sync state for the given account.
|
static Unit |
Assigns the data array as the sync state for the given account.
|
static Unit |
|
Public constructors
Public methods
get
static fun get(
provider: ContentProviderClient!,
uri: Uri!,
account: Account!
): ByteArray!
Get the sync state that is associated with the account or null.
Return |
ByteArray! |
the sync state or null if there is no sync state associated with the account |
newSetOperation
static fun newSetOperation(
uri: Uri!,
account: Account!,
data: ByteArray!
): ContentProviderOperation!
Creates and returns a ContentProviderOperation that assigns the data array as the sync state for the given account.
Parameters |
uri |
Uri!: the uri of the sync state |
account |
Account!: the Account whose sync state should be set |
data |
ByteArray!: the byte[] that contains the sync state |
Return |
ContentProviderOperation! |
the new ContentProviderOperation that assigns the data array as the account's sync state |
newUpdateOperation
static fun newUpdateOperation(
uri: Uri!,
data: ByteArray!
): ContentProviderOperation!
Creates and returns a ContentProviderOperation that assigns the data array as the sync state for the given account.
Parameters |
uri |
Uri!: the uri of the specific sync state to set |
data |
ByteArray!: the byte[] that contains the sync state |
Return |
ContentProviderOperation! |
the new ContentProviderOperation that assigns the data array as the account's sync state |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,[]]