ChromeWindow

Constructors

Link copied to clipboard
fun ChromeWindow(    context: Context,     view: ViewGroup,     nuguClientProvider: ChromeWindow.NuguClientProvider)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface CustomChipsProvider
Link copied to clipboard
interface NuguClientProvider
Link copied to clipboard
interface OnChipsClickListener
Link copied to clipboard
interface OnChromeWindowCallback

Functions

Link copied to clipboard
fun destroy()
Link copied to clipboard
fun getGlobalVisibleRect(outRect: Rect)

If some part of this view is not clipped by any of its parents, then return that area in r in global (root) coordinates.

Link copied to clipboard
fun isChipsEmpty(): Boolean
Link copied to clipboard
fun isShown(): Boolean

Returns the visibility of this view

Link copied to clipboard
open override fun onCancel(cause: ASRAgentInterface.CancelCause, header: Header)
Link copied to clipboard
open override fun onCompleteResult(result: String, header: Header)
Link copied to clipboard
open override fun onDialogUXStateChanged(    newState: DialogUXStateAggregatorInterface.DialogUXState,     dialogMode: Boolean,     payload: RenderDirective.Payload?,     sessionActivated: Boolean)
Link copied to clipboard
open override fun onError(    type: ASRAgentInterface.ErrorType,     header: Header,     allowEffectBeep: Boolean)
Link copied to clipboard
open override fun onNoneResult(header: Header)
Link copied to clipboard
open override fun onPartialResult(result: String, header: Header)
Link copied to clipboard
open override fun onThemeChange(theme: ThemeManagerInterface.THEME)
Link copied to clipboard
fun setOnChipsClickListener(listener: ChromeWindow.OnChipsClickListener?)

Set a listener which invoked on chips clicked. A listener will override a default behavior.

Link copied to clipboard
fun setOnChromeWindowCallback(callback: ChromeWindow.OnChromeWindowCallback?)

set ChromeWindow callback

Link copied to clipboard
fun setOnCustomChipsProvider(provider: ChromeWindow.CustomChipsProvider)
Link copied to clipboard
fun setScreenOnWhileASR(screenOn: Boolean)

Control whether we should use the attached view to keep the screen on while asr is occurring.