Live Data Manager Delegate protocol. Conforming to this protocol makes it possible to get Live Updates, state changes, errors and other calls from MPLiveDataManager.
More...
#include <MPLiveDataManager.h>
Live Data Manager Delegate protocol. Conforming to this protocol makes it possible to get Live Updates, state changes, errors and other calls from MPLiveDataManager.
◆ didReceiveLiveDataInfo:
Called when information about Liva Data for for a dataset is determined. The information will contain the currently active domain types.
- Parameters
-
info | The information about Liva Data for for a dataset. |
◆ didReceiveLiveUpdate:
Called when a Live Update was recieved.
- Parameters
-
liveUpdate | The Live Update. |
◆ didSubscribe:
Called when a Topic Criteria has successfully been subscribed for Live Updates.
- Parameters
-
topic | The Topic Criteria that was subscribed. |
◆ didUnsubscribe:
Called when a Topic Criteria has successfully ended subscription for Live Updates.
- Parameters
-
topic | The Topic Criteria that was unsubscribed. |
◆ didUpdateState:
Called when the state of the Live Data Manager changes.
- Parameters
-
state | The new state of the Live Data Manager. |
◆ onError:
- (void) onError: |
|
(NSError *) | error |
|
|
optional |
Called when an error occurs. If the error is due to lack of network connectivity, the Live Data Manager will automatically do reconnection attempts.
- Parameters
-
error | The unsubscription error. |
◆ onSubscriptionError:topic:
Called when a subscription fails. The subscription will be not automatically be retried.
- Parameters
-
error | The subscription error. |
topic | The Topic Criteria that failed its subscription. |
◆ onUnsubscriptionError:topic:
Called when a unsubscription fails. The unsubscription will be not automatically be retried.
- Parameters
-
error | The unsubscription error. |
topic | The Topic Criteria that failed its unsubscription. |