AVLiveQuery Class Reference

Inherits from NSObject
Declared in AVLiveQuery.h

Overview

A type that defines an object which can observe various kinds of change events of objects that a query matches.

  delegate

The delegate which receive change event of objects which the query matches.

@property (nonatomic, weak, nullable) id<AVLiveQueryDelegate> delegate

Discussion

The delegate which receive change event of objects which the query matches.

Declared In

AVLiveQuery.h

  query

The query which matches objects that you want to observe.

@property (nonatomic, strong, readonly) AVQuery *query

Discussion

The query which matches objects that you want to observe.

Declared In

AVLiveQuery.h

– initWithQuery:

Initialize live query with a AVQuery object.

- (instancetype)initWithQuery:(AVQuery *)query

Parameters

query

The query which matches objects that you want to observe.

Discussion

Initialize live query with a AVQuery object.

Declared In

AVLiveQuery.h

– subscribeWithCallback:

Subscribe change notifications for query.

- (void)subscribeWithCallback:(void ( ^ ) ( BOOL succeeded , NSError *error ))callback

Parameters

callback

The callback block of subscription.

Discussion

Subscribe change notifications for query.

Declared In

AVLiveQuery.h

– unsubscribeWithCallback:

Unsubscribe change notifications for query.

- (void)unsubscribeWithCallback:(void ( ^ ) ( BOOL succeeded , NSError *error ))callback

Parameters

callback

The callback block of unsubscription.

Discussion

Unsubscribe change notifications for query.

Declared In

AVLiveQuery.h