Diffusion Apple API 6.12.1
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
<PTDiffusionBinaryValueStreamDelegate> Protocol Reference

Methods implemented by classes handling streamed events for binary value topics. More...

#include <PTDiffusionBinaryValueStreamDelegate.h>

Inheritance diagram for <PTDiffusionBinaryValueStreamDelegate>:
<PTDiffusionSubscriberStreamDelegate> <PTDiffusionStreamDelegate>

Instance Methods

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

Detailed Description

Methods implemented by classes handling streamed events for binary 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 binary topics.

See also
PTDiffusionBinary
Since
5.9

Method Documentation

◆ diffusionStream:didUpdateTopicPath:specification:oldBinary:newBinary:

- (void) diffusionStream: (PTDiffusionValueStream *) stream
didUpdateTopicPath: (NSString *) topicPath
specification: (PTDiffusionTopicSpecification *) specification
oldBinary: (nullable PTDiffusionBinary *) oldBinary
newBinary: (PTDiffusionBinary *) newBinary 

An update was received for a topic path handled by a binary value stream.

Parameters
streamThe value stream that received the update.
topicPathThe topic path that was updated.
specificationThe specification for the updated topic.
oldBinaryThe previous value. If nil then this is the first value.
newBinaryThe new value derived from the last update received from the server.
Since
5.9