MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
Instance Methods | List of all members
<MPLiveDataManagerDelegate> Protocol Reference

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>

Inheritance diagram for <MPLiveDataManagerDelegate>:

Instance Methods

(void) - didReceiveLiveUpdate:
 
(void) - didUpdateState:
 
(void) - didSubscribe:
 
(void) - didUnsubscribe:
 
(void) - onSubscriptionError:topic:
 
(void) - onUnsubscriptionError:topic:
 
(void) - onError:
 
(void) - didReceiveLiveDataInfo:
 

Detailed Description

Live Data Manager Delegate protocol. Conforming to this protocol makes it possible to get Live Updates, state changes, errors and other calls from MPLiveDataManager.

Method Documentation

◆ didReceiveLiveDataInfo:

- (void) didReceiveLiveDataInfo: (MPLiveDataInfo *) info
optional

Called when information about Liva Data for for a dataset is determined. The information will contain the currently active domain types.

Parameters
infoThe information about Liva Data for for a dataset.

◆ didReceiveLiveUpdate:

- (void) didReceiveLiveUpdate: (MPLiveUpdate *) liveUpdate
optional

Called when a Live Update was recieved.

Parameters
liveUpdateThe Live Update.

◆ didSubscribe:

- (void) didSubscribe: (MPLiveTopicCriteria *) topic
optional

Called when a Topic Criteria has successfully been subscribed for Live Updates.

Parameters
topicThe Topic Criteria that was subscribed.

◆ didUnsubscribe:

- (void) didUnsubscribe: (MPLiveTopicCriteria *) topic
optional

Called when a Topic Criteria has successfully ended subscription for Live Updates.

Parameters
topicThe Topic Criteria that was unsubscribed.

◆ didUpdateState:

- (void) didUpdateState: (MPLiveDataManagerState) state
optional

Called when the state of the Live Data Manager changes.

Parameters
stateThe 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
errorThe unsubscription error.

◆ onSubscriptionError:topic:

- (void) onSubscriptionError: (NSError *) error
topic: (MPLiveTopicCriteria *) topic 
optional

Called when a subscription fails. The subscription will be not automatically be retried.

Parameters
errorThe subscription error.
topicThe Topic Criteria that failed its subscription.

◆ onUnsubscriptionError:topic:

- (void) onUnsubscriptionError: (NSError *) error
topic: (MPLiveTopicCriteria *) topic 
optional

Called when a unsubscription fails. The unsubscription will be not automatically be retried.

Parameters
errorThe unsubscription error.
topicThe Topic Criteria that failed its unsubscription.