DisabledMapGptManagerImpl

This implementation of InternalMapGptManager is used when the MapGPT feature is not available.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val core: MapGptCore
Link copied to clipboard
open override val state: StateFlow<MapGptState>

When MapGPT is available this value can be used to observe if the feature is enabled or its UI is visible.

Functions

Link copied to clipboard
open override fun attachMapGptPermissionLauncher(activityResultCaller: ActivityResultCaller)

Call this in your Activity or Fragment #onCreate function to allow MapGPT to register the necessary permission launcher.

Link copied to clipboard
open override fun createMapGptUI(mapGptUIOptions: MapGptUIOptions): MapGptDetachableUI

Entry point for attaching MapGPT UI to the hosting application.

Link copied to clipboard

Extension function to create a MapGptDetachableUI instance with builder DSL.

Link copied to clipboard
open override fun detachMapGptPermissionLauncher(activityResultCaller: ActivityResultCaller)

Call this in your Activity or Fragment #onDestory function to allow MapGPT to unregister the permission launcher.

Link copied to clipboard

The capability settings give users an ability to override capabilities of the MapGPT SDK through the settings screen. This function allows you to edit the capability settings available to enable or disable from the settings user interface.

Link copied to clipboard
open override fun onTeleportedToNewLocation()
Link copied to clipboard

Sets middleware with MapGPT capabilities.

Link copied to clipboard
open override fun setEnabled(enabled: Boolean)
Link copied to clipboard
open override fun setKeyboardModeEnabled(enabled: Boolean)
Link copied to clipboard
open override fun setMapGptAvatar(avatar: MapGptAvatar)
Link copied to clipboard
open override fun stopMapGptConversation()

Call this in your Activity or Fragment to force stop the avatar as required.

Link copied to clipboard
open override fun toggleMapGptConversation()

Toggle MapGPT avatar.

Link copied to clipboard
open override fun updateMapGptContextOverrides(update: MapGptContextOverrides.() -> Unit)

Set functions that allow you to override the MapGPT context.