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

Introduction

A value updater may be used to update topics of a certain type by specifying new values.

An updater can be used to send any number of updates.

If this updater was obtained from an update source, the topics that can be updated are restricted by the topic path used to register the update source.

See Also
PTDiffusionTopicUpdateControlFeature
PTDiffusionTopicUpdater
Since
6.0
Inheritance diagram for PTDiffusionValueUpdater:
PTDiffusionBinaryValueUpdater PTDiffusionJSONValueUpdater PTDiffusionNumberValueUpdater PTDiffusionRecordV2ValueUpdater PTDiffusionStringValueUpdater

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(void) - removeCachedValuesWithTopicSelector:
 
(void) - removeCachedValuesWithSelectorExpression:
 

Method Documentation

- (void) removeCachedValuesWithSelectorExpression: (NSString *)  expression

A convenience method wrapping a call to [self removeCachedValuesWithTopicSelector:]

Parameters
expressionThe topic selector expression to be evaluated locally, indicating the topics for which entries are to be removed.
Exceptions
NSInvalidArgumentExceptionIf the expression argument is nil.
Since
6.0
- (void) removeCachedValuesWithTopicSelector: (PTDiffusionTopicSelector *)  topicSelector

Removes values from the value cache.

If a cached value is removed, the next update for a topic will transmit the whole value to the server rather than a delta.

Parameters
topicSelectorIndicating the topics for which entries are to be removed.
Exceptions
NSInvalidArgumentExceptionIf the topicSelector argument is nil.
Since
6.0