Invox Dictation SDK Version:

Capture Internal Events


Invox Dictation defines a set of events that are triggered at certain times — either to warn of an error during the session, or to signal that a process has been executed correctly. These events can be captured in order to define a behaviour.

Available events

EventDescription
INVOX.eventTypeReport.LOGIN_ERRORTriggered when an error occurs during login.
INVOX.eventTypeReport.LOGIN_SUCCESSTriggered when the login is successful.
INVOX.eventTypeReport.LOGGING_OUTTriggered when logout begins. Use it to release application resources associated with the current Dictation session.

Usage

document.addEventListener(INVOX.eventTypeReport.LOGIN_ERROR, (e) => {
    console.error("Login error:", e.detail);
    alert(e.detail);
});

document.addEventListener(INVOX.eventTypeReport.LOGIN_SUCCESS, (e) => {
    const user = INVOX.GetUserInfo();
    console.log(`Welcome, ${user.Name}!`);
});

document.addEventListener(INVOX.eventTypeReport.LOGGING_OUT, () => {
    console.log("The Dictation session is closing.");
});
The event object has a detail field with information related to the occurrence of the event.
Table of Contents