Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
A topic updater provides methods for an update source to update topics.
An Updater can be used to send any number of updates. The topics that may be updated are determined by the topic path used when obtaining the updater.
Instance Methods | |
(void) | - updateWithTopicPath:content:completionHandler: |
(void) | - updateWithTopicPath:value:completionHandler: |
- (void) updateWithTopicPath: | (NSString *) | topicPath | |
content: | (PTDiffusionContent *) | content | |
completionHandler: | (NSError *_Nullable error) | __deprecated | |
Update the topic to the state represented by the supplied content, sending updates to subscribers if required.
topicPath | Identifies the topic to update. |
content | Content representing the new state. |
completionHandler | Block 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. |
NSInvalidArgumentException | If any of the supplied arguments are nil . |
- (void) updateWithTopicPath: | (NSString *) | topicPath | |
value: | (PTDiffusionBytes *) | value | |
completionHandler: | (NSError *_Nullable error) | completionHandler | |
Update the topic to the state represented by the supplied content, sending updates to subscribers if required.
topicPath | Identifies the topic to update. |
value | Value representing the new state. |
completionHandler | Block 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. |
NSInvalidArgumentException | If any of the supplied arguments are nil . |