-
public final class InAppMessagesModuleIn-app messages module namespace.
-
-
Field Summary
Fields Modifier and Type Field Description private AppDNAInAppMessageDelegatedelegate
-
Method Summary
Modifier and Type Method Description final AppDNAInAppMessageDelegategetDelegate()Public delegate exposed for hosts that read it directly. final UnitsetDelegate(AppDNAInAppMessageDelegate delegate)final UnitsuppressDisplay(Boolean suppress)SPEC-070-A A.11: Temporarily suppress display. final UnitsetDelegate(AppDNAInAppMessageDelegate delegate)SPEC-070-A A.11: Set a delegate for in-app message lifecycle events. final UnitsetAsyncShouldShowMessage(SuspendFunction1<String, Boolean> veto)SPEC-070-C D10 — set the OPTIONAL async shouldShowMessagewrapper-veto.-
-
Method Detail
-
getDelegate
final AppDNAInAppMessageDelegate getDelegate()
Public delegate exposed for hosts that read it directly. The source-of-truth is
MessageManager.delegate— this field is kept in lockstep viasetDelegate(...)so callers queryingAppDNA.inAppMessagessee the same instance.
-
setDelegate
final Unit setDelegate(AppDNAInAppMessageDelegate delegate)
-
suppressDisplay
final Unit suppressDisplay(Boolean suppress)
SPEC-070-A A.11: Temporarily suppress display. Forwards to MessageManager.
-
setDelegate
final Unit setDelegate(AppDNAInAppMessageDelegate delegate)
SPEC-070-A A.11: Set a delegate for in-app message lifecycle events.
-
setAsyncShouldShowMessage
final Unit setAsyncShouldShowMessage(SuspendFunction1<String, Boolean> veto)
SPEC-070-C D10 — set the OPTIONAL async
shouldShowMessagewrapper-veto. Forwards toMessageManager.asyncShouldShowMessage, which awaits it (in addition to the sync delegate veto) before presenting. Null clears it.
-
-
-
-