onCustomUiEvent

abstract suspend fun onCustomUiEvent(vpaIdentifier: VpaIdentifier, event: VpaMessage)

Notifies the VPA that a custom UI event occurred.

This can be used to tell the VPA that, for example, the end-user is in the middle of a dialogue with the VPA but interacted with the UI using touch. This allows the VPA to react to the event or to change the flow of the conversation based on what the user has done.

Parameters

vpaIdentifier

The VPA for which the event has occurred. This is the identifier given by the VPA in VpaProperties.vpaIdentifier.

event

Generic container that describes the UI event that occurred.