zcash-android-wallet-sdk/docs/-synchronizer/is-first-run.md

656 B

zcash-android-wallet-sdk / cash.z.ecc.android.sdk.data / Synchronizer / isFirstRun

isFirstRun

abstract suspend fun isFirstRun(): Boolean

A flag to indicate that this is the first run of this Synchronizer on this device. This is useful for knowing whether to initialize databases or other required resources, as well as whether to show walk-throughs.

Return true when this is the first run. Implementations can set criteria for that but typically it will be when the database needs to be initialized.