KNNaviView_StateDelegate
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
A delegate that represents the state of KNNaviView. Called when the state of KNNaviView changes. All callbacks are delivered on the main thread.
Example code — KNNaviView_StateDelegate
interface KNNaviView_StateDelegateMethods
naviViewDidUpdateMapCameraMode
Called when a switch occurs between the 2D flat map and the 3D three-dimensional map.
abstract fun naviViewDidUpdateMapCameraMode( cameraMode: MapViewCameraMode ): UnitParameters
| Name | Description |
|---|---|
cameraMode | Camera mode |
naviViewDidUpdateSndVolume
Called when the navigation volume changes.
abstract fun naviViewDidUpdateSndVolume( volume: Float ): UnitParameters
| Name | Description |
|---|---|
volume | Changed volume value |
naviViewDidUpdateStatusBarColor
Called when changing the status bar color to match the color of the screen currently being guided.
abstract fun naviViewDidUpdateStatusBarColor( color: Int ): UnitParameters
| Name | Description |
|---|---|
color | Changed color value |
naviViewDidUpdateUseDarkMode
Called when a switch occurs between day mode and night mode.
abstract fun naviViewDidUpdateUseDarkMode( mode: Boolean ): UnitParameters
| Name | Description |
|---|---|
mode | Day/night mode |
naviViewScreenState
It conveys the status of the current navigation screen. You can check the detailed type in KNNaviViewState.
fun naviViewScreenState( viewState: KNNaviViewState )Parameters
| Name | Description |
|---|---|
viewState | The state of the current driving screen |
naviViewPopupOpenCheck
Delivers the open or closed state of a popup message.
fun naviViewPopupOpenCheck( open: Boolean )Parameters
| Name | Description |
|---|---|
open | Whether the popup message is open or closed |
naviViewDidUpdateCustomButton
Called when the event of a custom button added to KNComponentBottomMenuView is activated.
fun naviViewDidUpdateCustomButton( id: Int,
toggleOn: Boolean? )Parameters
| Name | Description |
|---|---|
id | Custom button ID value |
toggleOn | The current state value of the toggle button when the custom button is set to the toggle style |
naviViewIsArrival
Sets the item to display at the bottom of the driving screen (default: true). (true: display arrival time, false: display travel time)
abstract fun naviViewIsArrival( aIsArrival: Boolean )