ListsJava

interface ListsJava

Functions

Link copied to clipboard
abstract fun addListItem(listSidOrUniqueName: String, jsonData: String, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Ad Item in the SyncListJava without opening it.

Link copied to clipboard
abstract fun addListItemWithTtl(listSidOrUniqueName: String, jsonData: String, ttlSeconds: Long, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Add Item in the SyncListJava without opening it.

Link copied to clipboard

Creates a new SyncListJava object with no unique name and infinite time to live.

open fun create(uniqueName: String?, output: SuccessListener<SyncListJava>): CancellationToken

Creates a new SyncListJava object with a unique name and infinite time to live.

open fun create(uniqueName: String?, ttlSeconds: Long, output: SuccessListener<SyncListJava>): CancellationToken

Creates a new SyncListJava object with a unique name and specified time to live.

abstract fun create(uniqueName: String?, ttlSeconds: Long, listener: SyncListJava.Listener?, output: SuccessListener<SyncListJava>): CancellationToken

Creates a new SyncListJava object with a unique name, specified time to live, and a listener for notifications.

Link copied to clipboard
abstract fun getListItem(listSidOrUniqueName: String, itemIndex: Long, callback: SuccessListener<SyncListJava.Item?>): CancellationToken

Retrieve Item from the SyncListJava without opening it.

Link copied to clipboard
abstract fun mutateListItem(listSidOrUniqueName: String, itemIndex: Long, mutator: SyncMutator, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Mutate value of the SyncListJava.Item using provided Mutator function.

Link copied to clipboard
abstract fun mutateListItemWithTtl(listSidOrUniqueName: String, itemIndex: Long, ttlSeconds: Long, mutator: SyncMutator, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Mutate value of the SyncListJava.Item using provided Mutator function.

Link copied to clipboard
open fun openExisting(sidOrUniqueName: String, output: SuccessListener<SyncListJava>): CancellationToken
abstract fun openExisting(sidOrUniqueName: String, listener: SyncListJava.Listener?, output: SuccessListener<SyncListJava>): CancellationToken

Open existing SyncListJava by SID or unique name.

Link copied to clipboard
open fun openOrCreate(uniqueName: String, ttlSeconds: Long, output: SuccessListener<SyncListJava>): CancellationToken
abstract fun openOrCreate(uniqueName: String, ttlSeconds: Long, listener: SyncListJava.Listener?, output: SuccessListener<SyncListJava>): CancellationToken

Open existing SyncListJava by unique name or create a new one if specified name does not exist.

Link copied to clipboard
open fun queryListItems(listSidOrUniqueName: String): SyncIteratorJava<SyncListJava.Item>

Retrieve all items from the SyncListJava without opening it.

open fun queryListItems(listSidOrUniqueName: String, startIndex: Long): SyncIteratorJava<SyncListJava.Item>
open fun queryListItems(listSidOrUniqueName: String, startIndex: Long, includeStartIndex: Boolean): SyncIteratorJava<SyncListJava.Item>
open fun queryListItems(listSidOrUniqueName: String, startIndex: Long?, includeStartIndex: Boolean, queryOrder: <Error class: unknown class>): SyncIteratorJava<SyncListJava.Item>
open fun queryListItems(listSidOrUniqueName: String, startIndex: Long?, includeStartIndex: Boolean, queryOrder: <Error class: unknown class>, pageSize: Int): SyncIteratorJava<SyncListJava.Item>
abstract fun queryListItems(listSidOrUniqueName: String, startIndex: Long?, includeStartIndex: Boolean, queryOrder: <Error class: unknown class>, pageSize: Int, useCache: Boolean): SyncIteratorJava<SyncListJava.Item>

Retrieve items from the SyncListJava without opening it.

Link copied to clipboard
abstract fun remove(sidOrUniqueName: String, callback: SuccessListener<Unit>): CancellationToken

Remove SyncListJava without opening it.

Link copied to clipboard
abstract fun removeListItem(listSidOrUniqueName: String, itemIndex: Long, callback: SuccessListener<Unit>): CancellationToken

Remove Item from the SyncListJava without opening it.

Link copied to clipboard
abstract fun setListItem(listSidOrUniqueName: String, itemIndex: Long, jsonData: String, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Set Item in the SyncListJava without opening it.

Link copied to clipboard
abstract fun setListItemWithTtl(listSidOrUniqueName: String, itemIndex: Long, jsonData: String, ttlSeconds: Long, callback: SuccessListener<SyncListJava.Item>): CancellationToken

Set Item in the SyncListJava without opening it.

Link copied to clipboard
abstract fun setTtl(sidOrUniqueName: String, ttlSeconds: Long, callback: SuccessListener<Unit>): CancellationToken

Set time to live for SyncListJava without opening it.