• Notifies the respective listener of the specified type with the message given.

    Parameters

    Returns void

    Throws

    validation: InAppMessagingValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect, or if In App messaging hasn't been initialized.

    Example

    onMessageRecieved((message) => {
    // Show end users the In-App message and notify event listeners
    notifyMessageInteraction({ type: 'messageDisplayed', message });
    });