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

Introduction

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.

See Also
PTDiffusionTopicUpdateControlFeature
Since
5.7
Inheritance diagram for PTDiffusionTopicUpdater:

Instance Methods

(void) - updateWithTopicPath:content:completionHandler:
 
(void) - updateWithTopicPath:value:completionHandler:
 

Method Documentation

- (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.

Parameters
topicPathIdentifies the topic to update.
contentContent representing the new state.
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
NSInvalidArgumentExceptionIf any of the supplied arguments are nil.
Note
The supplied content must always represent the new full topic state.
Deprecated:
since 5.9, replaced by updateWithTopicPath:value:completionHandler:
Since
5.7
- (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.

Parameters
topicPathIdentifies the topic to update.
valueValue representing the new state.
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
NSInvalidArgumentExceptionIf any of the supplied arguments are nil.
Note
The supplied value must always represent the new full topic state.
Since
5.9