observe

fun observe(key: String, listener: RealtimeStoreListener)

This method can be used to observe changes to a specific key in the realtime store.

The listener will be called whenever the value associated with the key is updated by any participant.

Code Example:


meeting.realtimeStore.observe("poll_active") { value, updatedBy ->
    Log.d("Store", "Key updated to: " + value + " by: " + updatedBy.getDisplayName())
}

Parameters

key

the key to observe

listener

the RealtimeStoreListener to receive change notifications