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
PTDiffusionFetchRequest(PTDiffusionRecordV2) Category Reference

Introduction

Extension adding support to Topics feature fetch requests allowing them to be constrained to only those topics with a data type compatible with records.

Since
6.2

Instance Methods

(void) - fetchRecordValuesWithTopicSelectorExpression:completionHandler:
 

Method Documentation

- (void) fetchRecordValuesWithTopicSelectorExpression: (NSString *)  expression
completionHandler: (PTDiffusionRecordV2FetchResult *_Nullable)  result
(NSError *_Nullable error)  completionHandler 

Sends a fetch request to the server, specifying that values should be returned for selected topics, constraining the selection to only those topics with a data type compatible with records.

The record data type constrains the topic types. So, any topic types specified in a previous call to #topicTypes: that cannot be read as records will be removed from the list of topic types.

Results are returned for all topics matching the selector that satisfy the request constraints within any range defined by #fromTopicPath: / #afterTopicPath: and/or #toTopicPath: / #beforeTopicPath:

Parameters
expressionSpecifies a topic selector, evaluated at the server, which selects the topics to be fetched.
completionHandlerBlock to be called asynchronously on success or failure. If the operation was successful, the error argument passed to the block will be nil. The completion handler will be called asynchronously on the main dispatch queue.
Exceptions
NSInvalidArgumentExceptionRaised if any supplied arguments are nil.
Since
6.2

Extends class PTDiffusionFetchRequest.