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

Introduction

The topic stream delegate protocol defines the methods to be implemented by classes wishing to receive streamed topic updates.

See Also
PTDiffusionTopicsFeature
Deprecated:
Since 6.0. Topic streams are only necessary to support the deprecated stateless and record topic types. They will be removed along with these topic types in a future release.
Since
5.6
Inheritance diagram for <PTDiffusionTopicStreamDelegate>:
<PTDiffusionStreamDelegate>

Instance Methods

(void) - diffusionStream:didUpdateTopicPath:content:context:
 
(void) - diffusionStream:didSubscribeToTopicPath:details:
 
(void) - diffusionStream:didUnsubscribeFromTopicPath:reason:
 
- Instance Methods inherited from <PTDiffusionStreamDelegate>
(void) - diffusionStream:didFailWithError:
 
(void) - diffusionDidCloseStream:
 

Method Documentation

- (void) diffusionStream: (PTDiffusionStream *)  stream
didSubscribeToTopicPath: (NSString *)  topicPath
details: (PTDiffusionTopicDetails *)  details 

A subscription notification was received for a topic path handled by the topic stream.

The subscription could be as a result of a request from this client's associated session or it might have been requested by another control client.

Parameters
streamThe topic stream that received the subscription notification.
topicPathThe topic path to which the session has been subscribed.
detailsThe details of the subscription.
Since
5.6
- (void) diffusionStream: (PTDiffusionStream *)  stream
didUnsubscribeFromTopicPath: (NSString *)  topicPath
reason: (PTDiffusionTopicUnsubscriptionReason)  reason 

An unsubscription notification was received for a topic path handled by the topic stream.

The unsubscription could be as a result of a request from this client's associated session or it might have been requested by another control client.

Parameters
streamThe topic stream that received the unsubscription notification.
topicPathThe topic path from which the session has been unsubscribed.
reasonThe reason for the unsubscription.
Since
5.7
- (void) diffusionStream: (PTDiffusionStream *)  stream
didUpdateTopicPath: (NSString *)  topicPath
content: (PTDiffusionContent *)  content
context: (PTDiffusionUpdateContext *)  context 

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

Parameters
streamThe topic stream that received the update.
topicPathThe topic path that was updated.
contentThe content of the updated topic.
contextThe context of the update.
Since
5.6