KNGuidance_VoiceGuideDelegate
INFO
This English reference is based on Directions SDK 1.12.8-hotfix02. For the latest version, see the Korean reference.
A voice guidance delegate that requests and delivers information related to the start and end of voice guidance. All callbacks are delivered on the main thread.
Example code — KNGuidance_VoiceGuideDelegate
kotlin
interface KNGuidance_VoiceGuideDelegateMethods
didFinishPlayVoiceGuide
Ends voice guidance.
kotlin
abstract fun didFinishPlayVoiceGuide( guidance: KNGuidance,
voiceGuide: KNGuide_Voice ): UnitParameters
| Name | Description |
|---|---|
guidance | Route guidance feature and route information |
voiceGuide | Guidance voice information |
shouldPlayVoiceGuide
Sets whether to use voice guidance. (true: use voice guidance, false: do not use voice guidance)
kotlin
abstract fun shouldPlayVoiceGuide( guidance: KNGuidance,
voiceGuide: KNGuide_Voice,
newData: MutableList<ByteArray> ): BooleanParameters
| Name | Description |
|---|---|
guidance | Route guidance feature and route information |
voiceGuide | Guidance voice information |
newData | Voice data to change. When changed, guidance is provided with that voice. When changing the voice data file provided by the Directions SDK with UI, the following file format must be observed. [File format: .mp3, Bitrate: 128 kbit/s, Audio channel: monophonic sound] |
willPlayVoiceGuide
Starts voice guidance.
kotlin
abstract fun willPlayVoiceGuide( guidance: KNGuidance,
voiceGuide: KNGuide_Voice ): UnitParameters
| Name | Description |
|---|---|
guidance | Route guidance feature and route information |
voiceGuide | Guidance voice information |