set
This method can be used to set a value for the specified key in the realtime store.
The maximum allowed value size is 1024 bytes (1KB).
Code Example:
meeting.realtimeStore.set("poll_active", "true", object : RealtimeStoreCallback<String> {
override fun onSuccess(result: String) {
Log.d("Store", "Value set successfully")
}
override fun onError(error: String) {
Log.e("Store", "Error: " + error)
}
})
Content copied to clipboard
Parameters
key
the key to set
value
the value to associate with the key, or null to clear it
callback
the RealtimeStoreCallback to receive the result or error