syncStatus
fun syncStatus(network: NetworkStatus = NetworkStatus.UNKNOWN, pendingMutationCount: Int = 0, rejectedMutationCount: Int = 0, isSyncing: Boolean = false, lastSyncedAt: Instant? = null, lastSyncError: SyncFailedException? = null): SyncStatus(source)
Where the library stands with the queue and the network, as Offline.syncStatus holds it; every field defaults to the state of a client that has done nothing yet.
Parameters
network
whether the library believes it can reach the network.
pendingMutationCount
the current user's queued writes.
rejectedMutationCount
the current user's rejected writes.
isSyncing
whether a sync pass is running.
lastSyncedAt
when the queue was last emptied by sending, or null.
lastSyncError
why the last pass stopped with writes still queued, or null.