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 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."]]