oneTimeSync

inline fun <W : FhirSyncWorker> oneTimeSync(context: Context, retryConfiguration: RetryConfiguration? = defaultRetryConfiguration): Flow<SyncJobStatus>

Starts a one time sync job based on FhirSyncWorker.

Use the returned Flow to get updates of the sync job. Alternatively, use getWorkerInfo with the same FhirSyncWorker to retrieve the status of the job.

Return

a Flow of SyncJobStatus

Parameters

retryConfiguration

configuration to guide the retry mechanism, or null to stop retry.

Sources

androidJvm source
Link copied to clipboard