KNSafety
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.
Provides information displayed during route guidance.
Example code — KNSafety
kotlin
open class KNSafetyConstructor
Example code — Initialization
kotlin
// <init>
KNSafety(location: KNLocation, code: KNSafetyCode)Properties
| Name | Description | Type |
|---|---|---|
location | Location information (sign location) | var location: KNLocation |
code | Safe driving data code | var code: KNSafetyCode |
passed | Whether the camera has been passed | var passed: Boolean |
safetyId | Unique ID of each sign | val safetyId: Int |
Methods
isSameToSafety
Returns whether the safe driving information is the same, comparing by information rather than by object.
kotlin
fun isSameToSafety(safety: KNSafety): BooleansafetyType
Returns the information attribute of the safe driving mode, and is overridden in subclasses.
kotlin
open fun safetyType(): KNSafetyType