Inherits from NSObject
Declared in DBDatastoreStatus.h

Overview

Sync status for a DBDatastore, including any errors that are preventing syncing.

Tasks

  •   connected

    Whether the API is in active communication with the server so that remote changes are likely to be visible quickly, and local changes can be uploaded soon. The API will attempt to connect when datastores are open, but may fail if offline.

    property
  •   downloading

    Whether there are remote changes that need to be downloaded from the server. Always set when a DBDatastore is opened until the first successful check for updates.

    property
  •   uploading

    Whether there are local changes that need to be uploaded to the server.

    property
  •   incoming

    Whether there are remote changes that will be incorporated by the next call to [DBDatastore sync:].

    property
  •   outgoing

    Whether there are local changes that haven’t yet been committed by a call to [DBDatastore sync:].

    property
  •   needsReset

    Whether the local datastore needs to be reset with a call to [DBDatastore close:] followed by [DBDatastoreManager uncacheDatastore:].

    property
  •   uploadError

    The latest error preventing local datastore state from being uploaded, or nil if there is no error

    property
  •   downloadError

    The latest error preventing remote datastore state from being downloaded, or nil if there is no error

    property
  •   anyError

    An error (downloadError or uploadError) affecting this datastore, or nil if there is no error. This is a convenience for determining whether any operations are failing.

    property

Properties

anyError

@property (nonatomic, readonly) DBError *anyError
Discussion

An error (downloadError or uploadError) affecting this datastore, or nil if there is no error. This is a convenience for determining whether any operations are failing.

Declared In

DBDatastoreStatus.h

connected

@property (nonatomic, readonly) BOOL connected
Discussion

Whether the API is in active communication with the server so that remote changes are likely to be visible quickly, and local changes can be uploaded soon. The API will attempt to connect when datastores are open, but may fail if offline.

Declared In

DBDatastoreStatus.h

downloadError

@property (nonatomic, readonly) DBError *downloadError
Discussion

The latest error preventing remote datastore state from being downloaded, or nil if there is no error

Declared In

DBDatastoreStatus.h

downloading

@property (nonatomic, readonly) BOOL downloading
Discussion

Whether there are remote changes that need to be downloaded from the server. Always set when a DBDatastore is opened until the first successful check for updates.

Declared In

DBDatastoreStatus.h

incoming

@property (nonatomic, readonly) BOOL incoming
Discussion

Whether there are remote changes that will be incorporated by the next call to [DBDatastore sync:].

Declared In

DBDatastoreStatus.h

needsReset

@property (nonatomic, readonly) BOOL needsReset
Discussion

Whether the local datastore needs to be reset with a call to [DBDatastore close:] followed by [DBDatastoreManager uncacheDatastore:].

Declared In

DBDatastoreStatus.h

outgoing

@property (nonatomic, readonly) BOOL outgoing
Discussion

Whether there are local changes that haven’t yet been committed by a call to [DBDatastore sync:].

Declared In

DBDatastoreStatus.h

uploadError

@property (nonatomic, readonly) DBError *uploadError
Discussion

The latest error preventing local datastore state from being uploaded, or nil if there is no error

Declared In

DBDatastoreStatus.h

uploading

@property (nonatomic, readonly) BOOL uploading
Discussion

Whether there are local changes that need to be uploaded to the server.

Declared In

DBDatastoreStatus.h