init

fun init(context: Context, dispatcher: CoroutineDispatcher = DEFAULT_DISPATCHER)

Initializes this PermissionFlow instance with specified arguments.

Parameters

context

The Android's Context. Application context is recommended.

dispatcher

Coroutine dispatcher to be used in the PermissionFlow. By default, it utilizes dispatcher having fixed two number of threads.