The input object that holds the type and message.
validation: InAppMessagingValidationErrorCode - Thrown when the provided parameters or library configuration is incorrect, or if In App messaging hasn't been initialized.
onMessageRecieved((message) => {
// Show end users the In-App message and notify event listeners
notifyMessageInteraction({ type: 'messageDisplayed', message });
});
Notifies the respective listener of the specified type with the message given.