zcash-android-wallet-sdk/docs/-sdk-synchronizer/start.md

1008 B

zcash-android-wallet-sdk / cash.z.wallet.sdk.data / SdkSynchronizer / start

start

fun start(parentScope: CoroutineScope): Synchronizer

Overrides Synchronizer.start

Starts this synchronizer within the given scope. For simplicity, attempting to start an instance that has already been started will throw a SynchronizerException.FalseStart exception. This reduces the complexity of managing resources that must be recycled. Instead, each synchronizer is designed to have a long lifespan and should be started from an activity, application or session.

Parameters

parentScope - the scope to use for this synchronizer, typically something with a lifecycle such as an Activity for single-activity apps or a logged in user session. This scope is only used for launching this synchronzer's job as a child.