RealtimeStore

inner class RealtimeStore

Provides a shared key-value store for real-time data synchronization across participants.

set, get and observe need a joined meeting. Called before the meeting is joined or while it is reconnecting, they do nothing — no request is sent and no observer is added — and report the reason through onError; see Meeting for the two codes. set and get additionally deliver that message to their callback's onError, so a caller waiting on the callback is not left hanging.

Functions

Link copied to clipboard
fun get(key: String, callback: RealtimeStoreCallback<String>)
This method can be used to get the current value for the specified key from the realtime store.
Link copied to clipboard
fun observe(key: String, listener: RealtimeStoreListener)
This method can be used to observe changes to a specific key in the realtime store.
Link copied to clipboard
fun set(key: String, value: String, callback: RealtimeStoreCallback<String>)
This method can be used to set a value for the specified key in the realtime store.
Link copied to clipboard
Removes a listener from a key so it stops receiving that key's value changes.