getAccessPoints

abstract fun getAccessPoints(callback: (List<AccessPoint>) -> Unit): Cancelable

Get AccessPoint's 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!

The callback is emitting values until you call Cancelable.cancel. It's first value is an empty list.

Since

1.12.0

Return

Cancelable It is your responsibility to cancel this operation, when no longer needed, to avoid memory leaks.

Parameters

callback

receiving the list of AccessPoints.

abstract fun getAccessPoints(lifecycleOwner: LifecycleOwner, callback: (List<AccessPoint>) -> Unit): Cancelable

Get AccessPoint's 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!

The callback is emitting values until you call Cancelable.cancel or lifecycleOwner is in state Lifecycle.State.DESTROYED. It's first value is an empty list.

Since

1.12.0

Return

Cancelable In case you want to cancel before Lifecycle.State.DESTROYED

Parameters

lifecycleOwner

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

callback

receiving the list of AccessPoints.