Skip to main content
Triggered after the view state changes. This event enables post-change logic such as analytics, UI updates, or side effects.

Event properties

string
required
Always 'view:change'.
string
required
The reason for the view change.
object
required
The previous view state.
boolean
Whether the launcher was visible.
boolean
Whether the main window was visible.
object
required
The new view state.
boolean
Whether the launcher is now visible.
boolean
Whether the main window is now visible.

Example

Do you need practical examples?

Learn how to apply the features available for embedded chat into your implementation with guidance and examples.