Initializes a new anchored object query.
- iOS 8.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
A predicate that filters the samples returned by the query. Pass
nilto receive all the new samples of the specified type.
The anchor returned by the previous anchored object query. The anchor value corresponds to the last sample that was returned by the previous anchored object query. The new query returns only objects newer than that sample.
The maximum number of samples received by the query. To receive all of the new samples, pass
Query No Limit
A block that is called when the query finishes executing. This block takes the following parameters:
A reference to the query calling this block.
An array containing the samples returned by this query, or
nilif an error occurred.
A value corresponding to the last sample in the results array. Subsequent anchor queries can use this value to receive only the samples that have been saved and the objects that have been deleted since this query completed.
If an error occurs, this parameter contains an object describing the error; otherwise, it is
A newly initialized anchor query object.