ViewConfig

@Serializable
data class ViewConfig(val gridSize: Pair<Int, Int>, val viewSize: Pair<Int, Int>, val textSize: Int, val alignment: ViewConfig.Alignment = Alignment.RIGHT, val boundariesEnabled: Boolean = false, val preview: Boolean = false)

Configuration details about the view passed on start

See also

Constructors

Link copied to clipboard
constructor(gridSize: Pair<Int, Int>, viewSize: Pair<Int, Int>, textSize: Int, alignment: ViewConfig.Alignment = Alignment.RIGHT, boundariesEnabled: Boolean = false, preview: Boolean = false)

Types

Link copied to clipboard
@Serializable
enum Alignment : Enum<ViewConfig.Alignment>

Alignment of data fields in-ride profiles

Properties

Link copied to clipboard

User-configured alignment of this data field

Link copied to clipboard

Whether the user has configured their data field to include boundaries

Link copied to clipboard

Pair of column span x row span Total grid size is 60, so Pair(60, 15) would indicate 1/4 height, full width

Link copied to clipboard
val preview: Boolean = false

Whether the view is in preview mode (page editing) or in ride

Link copied to clipboard

Font size used in standard numeric view of this grid size in sp

Link copied to clipboard

Size (in pixels) of the current view as configured in the user profile