VoiceInstructionLoader

open class VoiceInstructionLoader

Constructors

VoiceInstructionLoader
Link copied to clipboard
open fun VoiceInstructionLoader(context: Context, accessToken: String, cache: Cache)
VoiceInstructionLoader
Link copied to clipboard
open fun VoiceInstructionLoader(context: Context, accessToken: String, cache: Cache, mapboxSpeechBuilder: MapboxSpeech.Builder, connectivityStatus: ConnectivityStatusProvider)

Functions

addCachedUrl
Link copied to clipboard
open fun addCachedUrl(url: String)
addStubUrlsToCache
Link copied to clipboard
open fun addStubUrlsToCache(urlsToCache: List<String>)
cacheInstructions
Link copied to clipboard
open fun cacheInstructions(instructions: List<String>)
evictVoiceInstructions
Link copied to clipboard
open fun evictVoiceInstructions(): List<String>
flushCache
Link copied to clipboard
open fun flushCache()
hasCache
Link copied to clipboard
open fun hasCache(): Boolean
requestInstruction
Link copied to clipboard
open fun requestInstruction(instruction: String, textType: String, callback: Callback<ResponseBody>)
setupMapboxSpeechBuilder
Link copied to clipboard
open fun setupMapboxSpeechBuilder(language: String)