Events - Agent Workspace

Events

LanguageChanged (Subscribing)

Subscribes a callback function to-be-invoked whenever a user LanguageChanged event occurs.

Signature

onLanguageChanged(handler: UserLanguageChangedHandler)

Usage

const handler: UserLanguageChangedHandler = async (data: UserLanguageChanged) => { console.log("User LanguageChange occurred! " + data); }; settingsClient.onLanguageChanged(handler); // UserLanguageChanged Structure { language: string; previous: { language: string; }; }

Permissions required:

User.Configuration.View

LanguageChanged (Unsubscribing)

Unsubscribes the callback function from LanguageChanged event.

Signature

offLanguageChanged(handler: UserLanguageChangedHandler)

Usage

settingsClient.offLanguageChanged(handler);