Skip to content
Select language:English

MDK 3.7.3

fun forceSynchronization(progress: (count: Int, total: Int) -> Unit)

Forces the sending of the data.

Parameters

progress

Callback invoked to report progress updates. It receives two parameters: the number of files sent and the total number of files to send.

- If no files are available, the callback is invoked with (0, 0).
- If an error occurs, the first parameter is set to a negative value indicating the index
of the file where the error occurred.
- Upon successful completion, the number of files sent will equal the total number of files.