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
<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
Since
5.6
Inheritance diagram for <PTDiffusionTopicStreamDelegate>:
<PTDiffusionStreamDelegate>

Instance Methods

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

Method Documentation

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

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 
optional

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 
required

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

Parameters
streamThe topic stream that received the update.
topicPathThe topic path which was updated.
contentThe content of the updated topic.
contextThe context of the update.
Since
5.6
- (void) diffusionTopicStream: (PTDiffusionStream *)  stream
didUnsubscribeFromTopicPath: (NSString *)  topicPath
reason: (PTDiffusionTopicUnsubscriptionReason)  __deprecated 
optional

An unsubscription notification was received for a topic path handled by the topic stream when the newer diffusionStream:didUnsubscribeFromTopicPath:reason: method has not been defined on the delegate.

Parameters
streamThe topic stream that received the unsubscription notification.
topicPathThe topic path from which the session has been unsubscribed.
reasonThe reason for the unsubscription.
See Also
- diffusionStream:didUnsubscribeFromTopicPath:reason:
Since
5.6
Deprecated:
Since 5.7 as this method was misnamed in the original 5.6 release.