SyncProgress

data class SyncProgress(val total: Int = 0, val current: Int = 0, val message: String? = null)(source)

Data class that represents the progress of a sync operation.

This is emitted by Syncable.sync implementations to report progress to SyncWorker, which displays it in a foreground service notification.

Parameters

total

Number of items in the current phase, not an overall operation total.

current

Number of items processed in the current phase.

message

The message to display during the sync operation.

See also

Interface implemented by syncable repositories

Constructors

Link copied to clipboard
constructor(total: Int = 0, current: Int = 0, message: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val total: Int