KNCustomBottomMenuItem
INFO
This English reference is based on Directions SDK with UI 1.12.8-hotfix02 (as of 2026-07-24). 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 ( @DrawableRes ) |
icon_n | Night icon ( @DrawableRes ) |
name | Name to display |
type | Button style (default: MENU_BUTTON_TOUCH ) |
toggleOn | State value when the button style is toggle (default: false ) |