InternalMapGptManager

This interface provides an entry point to the MapGPT feature.

Inheritors

Properties

Link copied to clipboard
abstract 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
abstract 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
abstract 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
abstract 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
Link copied to clipboard
abstract fun setEnabled(enabled: Boolean)
Link copied to clipboard
abstract fun setKeyboardModeEnabled(enabled: Boolean)
Link copied to clipboard
abstract fun setMapGptAvatar(avatar: MapGptAvatar)
Link copied to clipboard
abstract fun stopMapGptConversation()

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

Link copied to clipboard

Toggle MapGPT avatar.