class DataStore<T : Any>
getValue |
Returns the current value of given data stream. fun getValue(key: String): T? |
removeListener |
Removes the given listener from the data stream. fun removeListener(key: String, onChangeListener: OnChangeListener<T>?): Unit |
setListener |
Subscribes observer to the given stream. fun setListener(key: String, listener: OnChangeListener<T>?): Unit |
setValue |
Sets the given value to the stream (key). fun setValue(key: String, value: T?): Unit |
getInstance |
Returns singleton instance of DataStore fun <T : Any> getInstance(): DataStore<T>? |