getListItem

abstract suspend fun getListItem(listSidOrUniqueName: String, itemIndex: Long, useCache: Boolean = true): SyncList.Item?

Retrieve Item from the SyncList without opening it.

Return

SyncList.Item for this itemIndex or null if no item associated with the key.

Parameters

listSidOrUniqueName

SID or unique name of existing SyncList.

itemIndex

Index of the item to retrieve.

useCache

When true returns cached value if found in cache. Collect Events.onItemUpdated and Events.onItemRemoved to receive notifications about the item changes. When false - performs network request to get latest data from backend.

Throws

TwilioException

When error occurred while retrieving the Item.