getError

Returns any error that happened. If an error has happened, the state of the collection and other
changeset information is undefined. It is possible for a collection to go into an error state
after being created and starting to send updates.

Returns:

the error that happened.

isCompleteResult

boolean isCompleteResult()

Returns true if the query result is considered "complete". For all local Realms, or
fully synchronized Realms, this method will always return true.

This method thus only makes sense for query-based synchronized Realms.

For those Realms, data is only downloaded when queried which means that until the data is
downloaded, a local query might return a query result that would not have been possible on a
fully synchronized Realm.

Consider the following case:

An app is online and makes a query for all messages containing the word "Realm".

Partial synchronization downloads all those messages.

The app goes offline.

The app makes an offline query against all messages containing the word "Database".

Here there are two situations where the query result might be considered "incomplete".

The first is when the "Realm" query runs for the first time. The local query will finish
faster than the network can download data so the query will initially report an empty
incomplete query result.

The second is when the "Database" query is run. The initial query result will not be
empty, but contain all messages that contain both "Realm" and "Database", as they are already
available offline.

In both cases, a new notification will be triggered as soon as the device is able to download
the data required to produce a "complete" query result.

Returns:

true if the query result is fully consistent with the server at some point in
time. false if the query was executed while the device was offline or all data
has not been downloaded yet.