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

Introduction

Listener for topic events from the server.

See Also
PTDiffusionTopicControlFeature
Deprecated:
Since 6.1. The main use case for this protocol was the removal of unused topics. That use case is now much better satisfied using the removalPropertyKey (PTDiffusionTopicSpecification) to remove a topic using the subscriptions < n for condition. The older pattern adopting this protocol does not work across a cluster, so this protocol will be removed in a future release.
Since
5.7
Inheritance diagram for <PTDiffusionTopicEventListener>:
<PTDiffusionTopicTreeRegistrationDelegate>

Instance Methods

(void) - diffusionTopicTreeRegistration:hasSubscribersForTopicPath:
 
(void) - diffusionTopicTreeRegistration:hasNoSubscribersForTopicPath:
 
- Instance Methods inherited from <PTDiffusionTopicTreeRegistrationDelegate>
(void) - diffusionTopicTreeRegistrationDidClose:
 
(void) - diffusionTopicTreeRegistration:didFailWithError:
 

Method Documentation

- (void) diffusionTopicTreeRegistration: (PTDiffusionTopicTreeRegistration *)  registration
hasNoSubscribersForTopicPath: (NSString *)  topicPath 

A topic that previously had some subscribers now has none.

Parameters
registrationThe topic tree registration for which this listener applies.
topicPathThe path of the topic.
Since
5.7
- (void) diffusionTopicTreeRegistration: (PTDiffusionTopicTreeRegistration *)  registration
hasSubscribersForTopicPath: (NSString *)  topicPath 

A topic that previously had no subscribers now has at least one.

Parameters
registrationThe topic tree registration for which this listener applies.
topicPathThe path of the topic.
Since
5.7