triggerMessagingOverlay
// Types:
triggerMessagingOverlay: (prePopulatedMessage?: string) => Promise<void>;
// Example:
window.AE_SDK(async (thrownError, AE_SDK) => {
await AE_SDK.triggerMessagingOverlay("some text");
});
allows to open the messaging overlay from any CTA in the host website. This function supports passing a text string that will pre-populate the message box, without sending it.
Pre-populated message will only work if the user is logged in.
Parameters
Name | Type | Description | Default |
---|---|---|---|
prePopulatedMessage? | string | Optional text to populate the message box with | none |