Package com.tomtom.ivi.platform.frontend.api.common.uicontrols

Types

Link copied to clipboard
data class ToggleableServiceProperty(val value: Boolean, val setter: (Boolean) -> Unit? = null)

Helper class to hold a service property setting.

Functions

Link copied to clipboard
fun View.bindToggleableServiceProperty(model: ToggleableServiceProperty?, isViewEnabled: Boolean?)

Binds the view to a ToggleableServiceProperty.

Link copied to clipboard
fun IviServiceApi<*, *, *, *>.mapToToggleableServiceProperty(property: LiveData<Boolean>, propertySetter: (Boolean) -> Unit): LiveData<ToggleableServiceProperty>

Maps a service-related property to a ToggleableServiceProperty.