getBookableParameters

abstract fun getBookableParameters(unitId: String, callback: (Result<BookableParams>) -> Unit): Cancelable

Support function to get the booking parameters for a unit.

Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!

Since

1.6.0

Return

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

Parameters

unitId

the unitId to request the booking parameters

callback

receiving the Result with BookableParams.

abstract fun getBookableParameters(unitId: String, lifecycleOwner: LifecycleOwner, callback: (Result<BookableParams>) -> Unit): Cancelable

Support function to get the booking parameters for a unit.

Note: The purpose of this function is to support clients that can not use Coroutines or the Kotlin programming language!

Since

1.9.0

Return

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

Parameters

unitId

the unitId to request the booking parameters

lifecycleOwner

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

callback

receiving the Result with BookableParams.