Package-level declarations

Contains the stock system UI host implementation, providing TomTom Digital Cockpit's default look & feel.

Types

Link copied to clipboard

A bucket is a specification of a range of screen sizes. A specific screen size falls in one of the nine stock adaptiveness buckets. The UI will be adapted to a single specification. The screen size ranges have an upper and lower bound for its supported screen sizes both in the horizontal and vertical dimension and will not overlap other ranges.

Link copied to clipboard
@IviExperimental(reasons = [])
class StockAdaptiveSystemUiHelper(context: Context, viewVariantSelector: (widthDp: Int, heightDp: Int) -> StockAdaptivenessBucket = { widthDp, heightDp -> StockAdaptivenessBucket.get(widthDp, heightDp) }, bindDataFunction: (ViewDataBinding) -> Unit = {})

Reusable stock AdaptiveSystemUiHelper.

Link copied to clipboard
@IviExperimental(reasons = [])
class StockSystemUiHost(systemUiHostContext: SystemUiHostContext) : SystemUiHost

The stock system UI host implementation, providing TomTom Digital Cockpit's default look & feel.

A key event listener that can be added to the root view of a system UI (using ViewCompat.addOnUnhandledKeyEventListener to toggle the visibility of the system UI's DebugPanel container.

Functions

Link copied to clipboard
@IviExperimental(reasons = [])
fun View.elevationWithoutShadow(@Px elevationPx: Float?)

Sets the elevation of the View without creating a shadow for the View. If elevationPx is null the elevation is set to 0.0F. Note: Shadow is only disabled with API version >= 28.

Link copied to clipboard

Sets the elevation if the supplied boolean attribute is true. If attrRes resolves to true the elevation is set to tt_shadow_elevation_light. If attrRes resolves to false the elevation is set to 0.0F. If attrRes is null the elevation is set to 0.0F.