get Map Item
abstract suspend fun getMapItem(mapSidOrUniqueName: String, itemKey: String, useCache: Boolean = true): SyncMap.Item?
Retrieve Item from the SyncMap without opening it.
Return
SyncMap.Item for this itemKey or null if no item associated with the key.
Parameters
map Sid Or Unique Name
SID or unique name of existing SyncMap.
item Key
Key of the item to retrieve.
use Cache
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
Twilio Exception
When error occurred while retrieving the Item.