-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sync
-
None
-
?
-
3
-
428
-
Kotlin Beta sprint 36, Kotlin Beta sprint 37, Kotlin Beta sprint 38, Kotlin Beta sprint 39, Kotlin Beta sprint 40, Kotlin Beta sprint 41, Kotlin Beta sprint 42
Implement relevant progress listener API's similar to Realm Java
enum class ProgressMode { CURRENT_CHANGES, INDEFINETELY } data class Progress(val transferredBytes: Long, val transferableBytes: Long) { val fractionTransferred: Double val transferComplete: Boolean } typealias ProgressListener = (progress: Progress) -> Unit class SyncSession { fun addDownloadProgressListener(mode: ProgressMode, listener: ProgressListener): Cancellable fun addUploadProgressListener(mode: ProgressMode, listener: ProgressListener): Cancellable fun uploadAllLocalChanges(timeout: Long = Long.MAX_VALUE, unit = TimeUnit.SECONDS) fun downloadAllServerChanges(timeout: Long = Long.MAX_VALUE, unit = TimeUnit.SECONDS) }
- depends on
-
RCORE-1296 [C-API] Align notification/callback registration mechanism in the C-API
- Closed
- is depended on by
-
RKOTLIN-156 Story: [Sync] SyncSession API
- Closed