In-App Message
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
nullif there is no currently displayed In-App Message.
Last updated