Diffusion Apple API  6.2.0
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Functions Variables Properties Pages
Instance Methods | List of all members
PTDiffusionTopicNotificationRegistration Class Reference

Introduction

The registration state of the associated topic notification listener on the server.

Provides operations to control which topic paths the listener will receive notifications for.

Since
6.1
Inheritance diagram for PTDiffusionTopicNotificationRegistration:
PTDiffusionRegistration

Instance Methods

(void) - selectWithTopicSelectorExpression:completionHandler:
 
(void) - deselectWithTopicSelectorExpression:completionHandler:
 
- Instance Methods inherited from PTDiffusionRegistration
(instancetype) - NS_UNAVAILABLE
 
(void) - closeWithCompletionHandler:
 
(void) - close
 

Additional Inherited Members

- Class Methods inherited from PTDiffusionRegistration
(instancetype) + NS_UNAVAILABLE
 

Method Documentation

- (void) deselectWithTopicSelectorExpression: (NSString *)  expression
completionHandler: (NSError *_Nullable error)  completionHandler 

Request to stop receiving notifications for all topics matched by the provided topic selector.

Parameters
expressionThe topic selector expression to be evaluated by the server.
completionHandlerBlock to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue.
Exceptions
NSInvalidArgumentExceptionRaised if any arguments are nil.
Since
6.1
- (void) selectWithTopicSelectorExpression: (NSString *)  expression
completionHandler: (NSError *_Nullable error)  completionHandler 

Request to receive notifications for all topics matched by the provided topic selector.

Parameters
expressionThe topic selector expression to be evaluated by the server.
completionHandlerBlock to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue.
Exceptions
NSInvalidArgumentExceptionRaised if any arguments are nil.
Since
6.1