ServiceClientLiveDataMap
class ServiceClientLiveDataMap( methodId: Int, serviceHandler: CommunicationsServiceHandler, coroutineScope: CoroutineScope = MainScope()) : LiveData<Map<ByteString, ByteString?>>
Content copied to clipboard
Remote live data map client.
When the first observer is added, instances of this class will automatically open a streaming call to the specified methodId on the specified serviceHandler. When the last observer is removed it will cancel the streaming call.
The streaming call will provide asynchronous updates to the map, that will be available as the observed value updates.
Constructors
Link copied to clipboard
fun ServiceClientLiveDataMap( methodId: Int, serviceHandler: CommunicationsServiceHandler, coroutineScope: CoroutineScope = MainScope())
Content copied to clipboard
Functions
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun observeForever(@NonNull p0: Observer<in Map<ByteString, ByteString?>>)
Content copied to clipboard
Link copied to clipboard
open fun removeObserver(@NonNull p0: Observer<in Map<ByteString, ByteString?>>)
Content copied to clipboard
Link copied to clipboard