For the complete documentation index, see llms.txt. This page is also available as Markdown.

In-App Message

This feature is supported in JavaScript SDK version 11.15.0 and above.

In-App Message Developer Guide

HackleInAppMessage

interface HackleInAppMessage {
  key: number
}
  • Returns the key of the In-App Message.

HackleInAppMessageView

interface HackleInAppMessageView {
  close(): void
  inAppMessage: HackleInAppMessage // 11.48.0+
}
  • You can directly close the In-App Message from within a listener function by calling close().

Methods

getDisplayedInAppMessageView

const hackleClient = createInstance("YOUR_SDK_KEY");

const view = hackleClient.getDisplayedInAppMessageView();
if (view !== null) {
  view.close(); // 현재 표시 중인 인앱메시지를 닫습니다.
}
  • Returns the In-App Message currently displayed in the browser.

  • The return type is HackleInAppMessageView | null.

    • Returns null if there is no currently displayed In-App Message.

Last updated