LiveDataManager
open class LiveDataManager : SubscriptionClientListener, ApplicationLifecycleListener.OnApplicationActiveListener
Content copied to clipboard
LiveDataManager to control and implement states and events of live data
Functions
Link copied to clipboard
open fun getActiveLiveData(onActiveLiveDataResultListener: OnActiveLiveDataResultListener)
Content copied to clipboard
Gets the active live data for this solution
Link copied to clipboard
Get the instance of the livedataManager
Link copied to clipboard
Get the current state of the LiveDataManagers state
Link copied to clipboard
Get a list of the subscribed topics
Link copied to clipboard
Initialize LiveDataManager
Link copied to clipboard
Check for if LiveDataManager is initialized.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onLiveUpdateReceived(@NonNull topic: MPLiveTopic, @NonNull message: LiveUpdate)
Content copied to clipboard
Receives a LiveUpdate and calls the appropriate listeners
Link copied to clipboard
open fun onSubscriptionClientStateChanged(@NonNull state: SubscriptionClientState)
Content copied to clipboard
Invoke a change in the subscription clients connection state
Link copied to clipboard
Invoke the onTopicSubscribed listener with a specific topic
Link copied to clipboard
open fun onTopicSubscribeError(@NonNull error: MIError, @NonNull topic: MPLiveTopic)
Content copied to clipboard
Send an error of a topic subscription error.
Link copied to clipboard
Invoke the onTopicUnsubscribed listener with a specific topic
Link copied to clipboard
open fun onTopicUnsubscribeError(@NonNull error: MIError, @NonNull topic: MPLiveTopic)
Content copied to clipboard
Send an error of a topic unSubscribe error.
Link copied to clipboard
Set the OnErrorListener on LiveDataManager
Link copied to clipboard
open fun setOnLiveDataManagerStateChangedListener(messageListener: OnLiveDataManagerStateChangedListener)
Content copied to clipboard
Set the OnLiveDataManagerStateChangedListener on LiveDataManager
Link copied to clipboard
open fun setOnReceivedLiveUpdateListener(messageListener: OnReceivedLiveUpdateListener)
Content copied to clipboard
Set the OnReceivedLiveUpdateListener on LiveDataManager
Link copied to clipboard
open fun setOnTopicSubscribedListener(messageListener: OnTopicSubscribedListener)
Content copied to clipboard
Set the OnTopicSubscribedListener on LiveDataManager
Link copied to clipboard
open fun setOnTopicSubscribeErrorListener(messageListener: OnTopicSubscribeErrorListener)
Content copied to clipboard
Set the OnTopicSubscribeErrorListener on LiveDataManager
Link copied to clipboard
open fun setOnTopicUnsubscribedListener(messageListener: OnTopicUnsubscribedListener)
Content copied to clipboard
Set the OnTopicUnsubscribedListener on LiveDataManager
Link copied to clipboard
open fun setOnTopicUnsubscribeErrorListener(messageListener: OnTopicUnsubscribeErrorListener)
Content copied to clipboard
Set the OnTopicUnsubscribeErrorListener on LiveDataManager
Link copied to clipboard
Subscribe to a topic with LiveDataManager
Link copied to clipboard
Subscribe to a list of topics with LiveDataManager
Link copied to clipboard
Unsubscribe to a topic with LiveDataManager