![]() |
Diffusion Apple API 6.11.5
Unified Client Library for iOS, tvOS and OS X / macOS
|
Methods implemented by classes handling streamed events for number value topics.
This protocol defines the methods to be implemented by classes wishing to receive streamed events when updates are received from the server for numeric topics.
Instance Methods | |
(void) | - diffusionStream:didUpdateTopicPath:specification:oldNumber:newNumber: |
![]() | |
(void) | - diffusionStream:didSubscribeToTopicPath:specification: |
(void) | - diffusionStream:didUnsubscribeFromTopicPath:specification:reason: |
![]() | |
(void) | - diffusionStream:didFailWithError: |
(void) | - diffusionDidCloseStream: |
- (void) diffusionStream: | (PTDiffusionValueStream *) | stream | |
didUpdateTopicPath: | (NSString *) | topicPath | |
specification: | (PTDiffusionTopicSpecification *) | specification | |
oldNumber: | (nullable NSNumber *) | oldNumber | |
newNumber: | (nullable NSNumber *) | newNumber | |
An update was received for a topic path handled by a number value stream.
stream | The value stream that received the update. |
topicPath | The topic path that was updated. |
specification | The specification for the updated topic. |
oldNumber | The previous value. If nil then this is either the first value, or the previous value was nil indicating no value. |
newNumber | The new value derived from the last update received from the server, or nil if there is no value. |