DITSubscription
@interface DITSubscription : NSObject
Used to subscribe to receive updates from remote peers about matching documents.
While DITSubscription
objects remain in scope they ensure that documents in the collection
specified and that match the query provided will try to be kept up-to-date with the latest changes
from remote peers.
-
The query that the subscription is based on.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull query;
-
The name of the collection that the subscription is based on.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull collectionName;
-
Cancels the subscription and releases all associated resources.
Declaration
Objective-C
- (void)cancel;