LocalChatOwner

class LocalChatOwner(mapGptSettings: MapGptSettings, connectivityChecker: ConnectivityChecker) : UIComponent

Your AndroidManifest.xml application tag needs to set usesCleartextTraffic to true in order for this service to communicate with the localhost.

android:usesCleartextTraffic="true"

Constructors

Link copied to clipboard
constructor(mapGptSettings: MapGptSettings, connectivityChecker: ConnectivityChecker)

Properties

Link copied to clipboard
val chatState: StateFlow<LocalChatState>
Link copied to clipboard
lateinit var coroutineScope: CoroutineScope
Link copied to clipboard
val isEnabled: StateFlow<Boolean>
Link copied to clipboard
val profile: Flow<String?>

Functions

Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
fun postLocalPrompts(request: MapGptStreamingRequest)