KNCustomBottomMenuItem
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Sets the details of a custom menu to be added to the driving screen, such as its icon, name, and button style.
Example code — KNCustomBottomMenuItem
kotlin
class KNCustomBottomMenuItemConstructor
KNCustomBottomMenuItem
Initializes a KNCustomBottomMenuItem.
kotlin
fun KNCustomBottomMenuItem( context: Context,
menuId: Int,
@DrawableRes icon: Int? = 0,
@DrawableRes icon_n: Int? = 0,
name: String,
type: KNCustomMenuStyle? = KNCustomMenuStyle.MENU_BUTTON_TOUCH,
toggleOn: Boolean? = false )Parameters
| Name | Description |
|---|---|
context | Context |
menuId | Custom button ID |
icon | Day icon @DrawableResources |
icon_n | Night icon @DrawableResources |
name | Button style (default: MENU_BUTTON_TOUCH ) |
type | Button style(default: MENU_BUTTON_TOUCH) |
toggleOn | State value when the button style is toggle (default: false) |