Sync

object Sync

Functions

getLastSyncTimestamp
Link copied to clipboard
fun getLastSyncTimestamp(context: Context): OffsetDateTime?
Gets the timestamp of the last sync job.
getWorkerInfo
Link copied to clipboard
inline fun <W : FhirSyncWorker> getWorkerInfo(context: Context): <ERROR CLASS>
Gets the worker info for the FhirSyncWorker
oneTimeSync
Link copied to clipboard
inline fun <W : FhirSyncWorker> oneTimeSync(context: Context, retryConfiguration: RetryConfiguration? = defaultRetryConfiguration): Flow<SyncJobStatus>
Starts a one time sync job based on FhirSyncWorker.
periodicSync
Link copied to clipboard
@ExperimentalCoroutinesApi()
inline fun <W : FhirSyncWorker> periodicSync(context: Context, periodicSyncConfiguration: PeriodicSyncConfiguration): Flow<SyncJobStatus>
Starts a periodic sync job based on FhirSyncWorker.

Properties

gson
Link copied to clipboard
val gson: Gson

Sources

androidJvm source
Link copied to clipboard