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

16 lines
717 B
Markdown
Raw Normal View History

[zcash-android-wallet-sdk](../../index.md) / [cash.z.wallet.sdk.data](../index.md) / [SdkSynchronizer](index.md) / [isFirstRun](./is-first-run.md)
# isFirstRun
`suspend fun isFirstRun(): `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
Overrides [Synchronizer.isFirstRun](../-synchronizer/is-first-run.md)
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 resourcews, 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.