Diffusion Apple API  6.9.0
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Files Functions Variables Enumerations Enumerator Properties Pages
Instance Methods | List of all members
<PTDiffusionNumberValueStreamDelegate> Protocol Reference

Introduction

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.

See Also
PTDiffusionPrimitive
Since
6.0
Inheritance diagram for <PTDiffusionNumberValueStreamDelegate>:
<PTDiffusionSubscriberStreamDelegate> <PTDiffusionStreamDelegate>

Instance Methods

(void) - diffusionStream:didUpdateTopicPath:specification:oldNumber:newNumber:
 
- Instance Methods inherited from <PTDiffusionSubscriberStreamDelegate>
(void) - diffusionStream:didSubscribeToTopicPath:specification:
 
(void) - diffusionStream:didUnsubscribeFromTopicPath:specification:reason:
 
- Instance Methods inherited from <PTDiffusionStreamDelegate>
(void) - diffusionStream:didFailWithError:
 
(void) - diffusionDidCloseStream:
 

Method Documentation

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

Parameters
streamThe value stream that received the update.
topicPathThe topic path that was updated.
specificationThe specification for the updated topic.
oldNumberThe previous value. If nil then this is either the first value, or the previous value was nil indicating no value.
newNumberThe new value derived from the last update received from the server, or nil if there is no value.
Since
6.0