NativeInputEventListener

Listens for native input events raised from the app layer (the host that shows the widget and receives its submit callbacks). Keeps :app off duckchat-impl internals — implementations live in duckchat-impl. The current implementation (MetricsNativeInputEventListener) fans these events out to the pixel, session-usage and discovery-funnel collaborators.

Functions

Link copied to clipboard
abstract fun onChatPromptSubmitted()

A Duck.ai chat prompt was submitted from the native input.

Link copied to clipboard
abstract fun onNativeInputShown(landscape: Boolean)

Native input shown to the user. Fires once per presentation.

Link copied to clipboard
abstract fun onSearchSubmitted(query: String)

A search query was submitted from the native input.