KNSafety_Camera
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
Provides information such as enforcement cameras that can be checked in safe driving mode.
Example code — KNSafety_Camera
kotlin
open class KNSafety_Camera : KNSafetyConstructor
Example code — Initialization
kotlin
// <init>
KNSafety_Camera(location: KNLocation, code: KNSafetyCode, speedLimit: Int)Properties
| Name | Description | Type |
|---|---|---|
location | Current location along the route | var location: KNLocation |
code | Safe driving data code | var code: KNSafetyCode |
speedLimit | Speed limit (unit: km/h) | var speedLimit: Int |
isVariableSpeedLimit | Whether a variable speed limit is in operation | var isVariableSpeedLimit: Boolean |
onViolation | Whether it is in a speed violation state | var onViolation: Boolean |
Methods
safetyType
An overridden function that returns KNSafetyType.KNSafetyType_Camera.
kotlin
open fun safetyType(): KNSafetyType