SyncProgress

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

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

The total number of items to sync.

current

The current number of items synced.

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