Web Component that implements the AXP Messaging UI. The Web Component is highly customizable and can be easily integrated into the Client website to enable messaging capabilities.

Hierarchy

  • HTMLElement
    • AxpOmniSdkMessagingUi

Accessors

  • get initialized(): boolean
  • Returns a boolean indicating whether the instance of AxpOmniSdkMessagingUi has been initialized.

    Returns boolean

    A boolean indicating whether the instance has been initialized.

  • get currentThemeName(): string
  • Returns the current theme name

    Returns string

    The current theme name

Methods

  • Initializes the AxpOmniSdkMessagingUi with the provided parameters. Before any operation can be performed with the SDK, it must be initialized. The initialization process creates a new session for the current user (identified by the JWT).

    Parameters

    Returns Promise<void>

    A promise that resolves when the SDK is initialized.

  • Maximizes the messaging window.

    Returns void

  • Minimizes the messaging window.

    Returns void

  • Sets the JWT.

    Parameters

    • jwt: string

      The JWT to set.

    Returns void

  • Shutdown the SDK and closes the user's session with AXP. After shutdown, if the SDK is required to be used again, re-initialize it by calling init. Before calling this method, it is mandatory for the SDK to be initialized.

    Returns Promise<void>

  • Clears the event handler callback that was attached to the AXP Omni SDK Messaging UI idle timeout event. This method will remove the event handler callback that was previously configured in the global configuration object axpOmniSdkMessagingUiConfig (of type AxpOmniSdkMessagingUiConfig).

    Returns void

  • Clears the event handler callback that was attached to the AXP Omni SDK Messaging UI initialization event. This method will remove the event handler callback that was previously configured in the global configuration object axpOmniSdkMessagingUiConfig (of type AxpOmniSdkMessagingUiConfig).

    Returns void

  • Clears the event handler callback that was attached to the AXP Omni SDK Messaging UI shutdown event. This method will remove the event handler callback that was previously configured in the global configuration object axpOmniSdkMessagingUiConfig (of type AxpOmniSdkMessagingUiConfig).

    Returns void

  • Reset the idle timer to indicate the SDK that the user session is still active. The SDK will internally reset the timer when the user interacts with the Messaging Window like sending a message. Invoke this method only when client want to indicate a user's activity visible only to the client.

    Returns void

  • Sets the event handler callback that needs to be invoked when the idle timeout is reached. This method will reset the event handler callback that was previously configured in the global configuration object axpOmniSdkMessagingUiConfig (of type AxpOmniSdkMessagingUiConfig).

    Parameters

    Returns void

  • Sets the event handler callback that needs to be invoked when the AXP Omni SDK Messaging UI is initialized. This method will reset the event handler callback that was previously configured in the global configuration object axpOmniSdkMessagingUiConfig (of type AxpOmniSdkMessagingUiConfig).

    Parameters

    Returns void

  • Sets the locale for the AxpOmniSdkMessagingUi. The locale is used to determine the translations of the Messaging UI.

    Parameters

    • locale: string

      The locale to set. The locale should be in the ISO 639-1 format, example "en-US".

    Returns void

  • Sets the log level of SDK.

    Parameters

    • logLevel: LogLevel

      The log level to set.

    Returns void

  • Sets the event handler callback that needs to be invoked when the AXP Omni SDK Messaging UI is shutdown. This method will reset the event handler callback that was previously configured in the global configuration object axpOmniSdkMessagingUiConfig (of type AxpOmniSdkMessagingUiConfig).

    Parameters

    Returns void