AccessPointController

interface AccessPointController : SupportAccessPointController

Controller for getting AccessPoint's and open them.

For Java Developers: You can convert a kotlinx.coroutines.flow.Flow to androidx.lifecycle.LiveData using FlowLiveDataConversions.asLiveData(flow);

Attention: This is an experimental API and might change in future!

Functions

getAccessPoint
Link copied to clipboard
abstract suspend fun getAccessPoint(id: String): Result<AccessPoint>
abstract fun getAccessPoint(id: String, callback: (Result<AccessPoint>) -> Unit): Cancelable
abstract fun getAccessPoint(id: String, lifecycleOwner: LifecycleOwner, callback: (Result<AccessPoint>) -> Unit): Cancelable

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

getAccessPoints
Link copied to clipboard
abstract fun getAccessPoints(): StateFlow<List<AccessPoint>>
abstract fun getAccessPoints(callback: (List<AccessPoint>) -> Unit): Cancelable
abstract fun getAccessPoints(lifecycleOwner: LifecycleOwner, callback: (List<AccessPoint>) -> Unit): Cancelable

Get AccessPoint's the user has access to.

open
Link copied to clipboard
abstract suspend fun open(accessPoint: AccessPoint): Result<Unit>
abstract fun open(accessPoint: AccessPoint, callback: (Result<Unit>) -> Unit): Cancelable
abstract fun open(accessPoint: AccessPoint, lifecycleOwner: LifecycleOwner, callback: (Result<Unit>) -> Unit): Cancelable

Opens an AccessPoint.