Sync progress

Generated reference for ovok_flutter: sync progress.

  • Stable unknown
  • Release candidate since 0.1.0-rc.6
  • Development since 0.1.0-dev.32+1028d01

SyncPauseReason

enum SyncPauseReason

Why a sync run is paused.

Values

SyncPauseReason.offline

static const SyncPauseReason offline

The device has no network connection.

SyncPauseReason.wifiOnly

static const SyncPauseReason wifiOnly

Sync is waiting for an unmetered connection.

SyncProgress

class SyncProgress

Sync state for one data type.

Constructors

SyncProgress.new

SyncProgress({
  required String measurementTypeKey,
  required SyncProgressStatus status,
  SyncPauseReason? reason,
  SyncProgressCounts? progress,
})

Creates a sync progress snapshot.

ParameterTypeKindDefault
measurementTypeKeyStringrequired named
statusSyncProgressStatusrequired named
reasonSyncPauseReason?named
progressSyncProgressCounts?named

Properties

SyncProgress.measurementTypeKey

final String measurementTypeKey

Data type being synced.

SyncProgress.status

final SyncProgressStatus status

Current sync stage.

SyncProgress.reason

final SyncPauseReason? reason

Why a paused sync is waiting.

SyncProgress.progress

final SyncProgressCounts? progress

Records processed and remaining.

SyncProgressCounts

class SyncProgressCounts

Counts for one data type in a sync run.

Constructors

SyncProgressCounts.new

SyncProgressCounts({
  required int done,
  required int total,
  int? created,
})

Creates sync counts.

ParameterTypeKindDefault
doneintrequired named
totalintrequired named
createdint?named

Properties

SyncProgressCounts.done

final int done

Records processed so far.

SyncProgressCounts.total

final int total

Records to process.

SyncProgressCounts.created

final int? created

Observations created rather than matched or updated.

SyncProgressStatus

enum SyncProgressStatus

Current sync stage for one data type.

Values

SyncProgressStatus.started

static const SyncProgressStatus started

A sync run has started.

SyncProgressStatus.completed

static const SyncProgressStatus completed

All available records were processed.

SyncProgressStatus.failed

static const SyncProgressStatus failed

The sync run stopped after an error.

SyncProgressStatus.idle

static const SyncProgressStatus idle

No sync run is active.

SyncProgressStatus.syncing

static const SyncProgressStatus syncing

Records are being read or saved.

SyncProgressStatus.paused

static const SyncProgressStatus paused

The sync run is waiting to resume.

Last updated on

On this page