getAccessPoint

abstract fun getAccessPoint(id: String, callback: (Result<AccessPoint>) -> Unit): Cancelable

Get the AccessPoint with the given id the user has access to.

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

id

of the AccessPoint that is wanted. You can get it with AccessPoint.id

callback

receiving the AccessPoint

abstract fun getAccessPoint(id: String, lifecycleOwner: LifecycleOwner, callback: (Result<AccessPoint>) -> Unit): Cancelable

Get the AccessPoint with the given id the user has access to.

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

id

of the AccessPoint that is wanted. You can get it with AccessPoint.id

lifecycleOwner

auto cancel the Cancelable when lifecycle state is Lifecycle.State.DESTROYED

callback

receiving the AccessPoint