open
abstract fun open(accessPoint: AccessPoint, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
Opens an AccessPoint.
Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!
Since
1.12.0
Return
Cancelable It is your responsibility to cancel this operation, when no longer needed, to avoid memory leaks.
Parameters
access Point
the AccessPoint to be opened
callback
receiving the Result
abstract fun open(accessPoint: AccessPoint, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable
Content copied to clipboard
Opens an AccessPoint.
Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!
Since
1.12.0
Return
Cancelable In case you want to cancel before Lifecycle.State.DESTROYED
Parameters
access Point
the AccessPoint to be opened
lifecycle Owner
auto cancel the Cancelable when lifecycle state is Lifecycle.State.DESTROYED
callback
receiving the Result