Rate this page:

AvatarState

Avatar state object that describes a state and implements the logic of transitions and reactions.

Props

beforeExit

Copy URL
beforeExit: 

(event: AvatarStateChangeEvent) => void,Promise<void>

Event handler that is called when the dialog leaves the state

name

Copy URL
name: 

string

State name

onEnter

Copy URL
onEnter: 

(event: AvatarStateChangeEvent) => void,Promise<void>

Event handler that is called when the dialog enters the state

onTimeout

Copy URL
onTimeout: 

(event: AvatarTimeoutEvent) => void,Promise<void>

Event handler that is called when a timeout on a user input occurs

onUtterance

Copy URL
onUtterance: 

(event: AvatarUtteranceEvent) => void,Promise<void>

Event handler that is called when the dialog is in this state and a user says a phrase