Package-level declarations

Types

Link copied to clipboard
data class ButtonInfo(val title: String, val onClick: () -> Unit = {}, val enabled: Boolean = true)

Functions

Link copied to clipboard
fun AppInfoSetting(@DrawableRes logoImage: Int? = null, appName: String = "AppName", appVersion: String = "", appVersionSha: String = BuildConfig.SHORT_SHA)
Link copied to clipboard
fun ButtonGroup(modifier: Modifier = Modifier, title: String? = null, buttons: List<ButtonInfo>)
Link copied to clipboard
fun <T> ButtonToggleGroup(allValues: LinkedHashMap<T, String>, selectedValue: T, modifier: Modifier = Modifier, title: String = "Title", onSelectionChanged: (T) -> Unit = {})
Link copied to clipboard
fun CopyButton(title: String, textToCopy: String? = null, modifier: Modifier = Modifier)
Link copied to clipboard
fun <T> DropDownList(allValues: Map<T, String>, selectedValue: T, modifier: Modifier = Modifier, title: String? = null, onSelectionChanged: (T) -> Unit = {})
Link copied to clipboard
fun EditButton(title: String, text: String?, modifier: Modifier = Modifier, onEditClicked: () -> Unit = {}, onResetClicked: () -> Unit = {})
Link copied to clipboard
fun LinkItem(label: String, selectedValue: String? = null, modifier: Modifier = Modifier, isEnabled: Boolean = true, enabled: Boolean = true, icon: Int = com.mapbox.dash.theming.R.drawable.ic_arrow_right, iconBackground: Color = AppTheme.colors.backgroundColors.secondary, iconOrientation: LinkIconOrientation = LinkIconOrientation.RIGHT, onClick: () -> Unit = {})
Link copied to clipboard
@Preview(device = "spec:width=1280dp,height=800dp,dpi=480")
fun LinkItem_Preview_Dark()
Link copied to clipboard
fun MapStyleToggle(modifier: Modifier = Modifier, isMap3dAvailable: Boolean = false, isSatelliteModeAvailable: Boolean = false, isNightTheme: Boolean = false, map3dEnabled: Boolean = false, satelliteModeEnabled: Boolean = false, onMap3dChanged: (enabled: Boolean) -> Unit = {}, onSatelliteModeChanged: (enabled: Boolean) -> Unit = {})
Link copied to clipboard
@Preview(device = "spec:shape=Normal,width=1280,height=800,unit=dp,dpi=420")
fun Preview_ScreenTitleBar_Large_Dark()
Link copied to clipboard
fun Slider(modifier: Modifier = Modifier, title: String = "Title", value: Float = 0.5f, onValueChange: (Float) -> Unit = {}, valueRange: ClosedFloatingPointRange<Float> = 0f..1f, steps: Int = 0, onValueChangeFinished: (Float) -> Unit = {})
Link copied to clipboard
fun <T> ToggleList(allValues: LinkedHashMap<T, Pair<String, String?>>, selectedValue: T, modifier: Modifier = Modifier, onSelectionChanged: (T) -> Unit = {})