Kulwinder Singh
08/11/2019, 9:39 AMphoneAuth.verifyPhoneNumber(
number, 1, TimeUnit.MINUTES,
executor or Activity // but here i don't wanna scope it to activity instead i want to use it inside ViewModel using coroutines
,authCallback)
louiscad
08/11/2019, 10:14 AMKulwinder Singh
08/11/2019, 11:01 AMlouiscad
08/11/2019, 12:14 PMsuspendCancellableCoroutine
to wrap the callback.
@Kulwinder Singh If it's still "not working", please specific about what doesn't work exactly and what you tried.Kulwinder Singh
08/11/2019, 12:23 PMexecutor/activity
parameter those are not nullablelouiscad
08/11/2019, 12:36 PMExecutor
is interface, look. You can implement it and pass the runnables to a coroutine dispatcher.gildor
08/11/2019, 2:18 PMgildor
08/11/2019, 2:18 PMgildor
08/11/2019, 2:21 PM