DefaultNotificationManager Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NotificationManager NotificationProcessor |
Declared in | DefaultNotificationManager.h DefaultNotificationManager.m |
– addNotificationDelegate:
Add delegate to receive all notifications (both for mandatory and optional topics).
- (void)addNotificationDelegate:(id<NotificationDelegate>)delegate
Parameters
delegate |
Delegate to receive notifications |
---|
Discussion
Add delegate to receive all notifications (both for mandatory and optional topics).
Declared In
NotificationManager.h
– removeNotificationDelegate:
Remove listener receiving all notifications (both for mandatory and optional topics).
- (void)removeNotificationDelegate:(id<NotificationDelegate>)delegate
Parameters
delegate |
Delegate to receive notifications |
---|
Discussion
Remove listener receiving all notifications (both for mandatory and optional topics).
Declared In
NotificationManager.h
– addTopicListDelegate:
Add delegate for notification topics' list updates.
- (void)addTopicListDelegate:(id<NotificationTopicListDelegate>)delegate
Parameters
delegate |
The delegate to receive updates. |
---|
Discussion
Add delegate for notification topics' list updates.
See Also
Declared In
NotificationManager.h
– removeTopicListDelegate:
Remove delegate of notification topics' list updates.
- (void)removeTopicListDelegate:(id<NotificationTopicListDelegate>)delegate
Parameters
delegate |
The delegate which no longer needs updates. |
---|
Discussion
Remove delegate of notification topics' list updates.
See Also
Declared In
NotificationManager.h
– getTopics
Retrieve a list of available notification topics.
- (NSArray *)getTopics
Return Value
Array of available topics.
Discussion
Retrieve a list of available notification topics.
See Also
Declared In
NotificationManager.h
– subscribeToTopicWithId:forceSync:
Subscribe to notifications relating to the specified optional topic.
- (void)subscribeToTopicWithId:(int64_t)topicId forceSync:(BOOL)forceSync
Parameters
topicId |
Id of a optional topic. |
---|---|
forceSync |
Define whether current subscription update should be accepted immediately |
Discussion
Subscribe to notifications relating to the specified optional topic.
Exceptions
UnavailableTopicException |
Unknown topic id is provided or topic isn’t optional. |
---|
Declared In
NotificationManager.h
– subscribeToTopicsWithIDs:forceSync:
Subscribe to notifications relating to the specified list of optional topics.
- (void)subscribeToTopicsWithIDs:(NSArray *)topicIds forceSync:(BOOL)forceSync
Parameters
topicIds |
Array of optional topic ids. |
---|---|
forceSync |
Define whether current subscription update should be accepted immediately. |
Discussion
Subscribe to notifications relating to the specified list of optional topics.
Exceptions
UnavailableTopicException |
Unknown topic id is provided or topic isn’t optional. |
---|
Declared In
NotificationManager.h
– unsubscribeFromTopicWithId:forceSync:
Unsubscribe from notifications relating to the specified optional topic.
- (void)unsubscribeFromTopicWithId:(int64_t)topicId forceSync:(BOOL)forceSync
Parameters
topicId |
Id of a optional topic. |
---|---|
forceSync |
Define whether current subscription update should be accepted immediately. |
Discussion
Unsubscribe from notifications relating to the specified optional topic.
All previously added listeners will be removed automatically.
Exceptions
UnavailableTopicException |
Unknown topic id is provided or topic isn’t optional. |
---|
Declared In
NotificationManager.h
– unsubscribeFromTopicsWithIDs:forceSync:
Unsubscribe from notifications relating to the specified array of optional topics.
- (void)unsubscribeFromTopicsWithIDs:(NSArray *)topicIds forceSync:(BOOL)forceSync
Parameters
topicIds |
Array of optional topic ids. < NSString > |
---|---|
forceSync |
Define whether current subscription update should be accepted immediately. |
Discussion
Unsubscribe from notifications relating to the specified array of optional topics.
All previously added listeners will be removed automatically.
Exceptions
UnavailableTopicException |
Unknown topic id is provided or topic isn’t optional. |
---|
Declared In
NotificationManager.h
– addNotificationDelegate:forTopicId:
Add listener to receive notifications relating to the specified topic.
- (void)addNotificationDelegate:(id<NotificationDelegate>)delegate forTopicId:(int64_t)topicId
Parameters
delegate |
Delegate to receive notifications. |
---|---|
topicId |
Id of topic (both mandatory and optional). |
Discussion
Add listener to receive notifications relating to the specified topic.
Listener(s) for optional topics may be added/removed irrespective to whether subscription existed or not.
Exceptions
UnavailableTopicException |
Unknown topic id is provided. |
---|
Declared In
NotificationManager.h
– removeNotificationDelegate:forTopicId:
Remove delegate receiving notifications for the specified topic.
- (void)removeNotificationDelegate:(id<NotificationDelegate>)delegate forTopicId:(int64_t)topicId
Parameters
delegate |
Delegate to receive notifications. |
---|---|
topicId |
Id of topic (both mandatory and optional). |
Discussion
Remove delegate receiving notifications for the specified topic.
Delegate(s) for optional topics may be added/removed irrespective to whether subscription existed or not.
Exceptions
UnavailableTopicException |
Unknown topic id is provided. |
---|
Declared In
NotificationManager.h
– sync
Accept optional subscription changes.
- (void)sync
Discussion
Accept optional subscription changes.
Declared In
NotificationManager.h
– notificationsReceived:
Called when new notifications arrived.
- (void)notificationsReceived:(NSArray *)notifications
Parameters
notifications |
The list of new notifications. |
---|
Discussion
Called when new notifications arrived.
Declared In
NotificationProcessor.h