PushwooshInAppUi

Public entry point of the native in-app UI module, reached as PushwooshInAppUi.

Production in-apps are presented from a ZIP resource carrying native-config.json, routed in through the core NativeInAppPresenter contract. present is the manual / testing entry point — pass a config map to preview a layout without a server round-trip.

Properties

Link copied to clipboard

Optional callbacks for lifecycle / click events and per-message suppression.

Link copied to clipboard

When true, eligible messages are queued but not displayed. Default false.

Link copied to clipboard

true while a native in-app is really on screen — a live overlay or a live overlay Activity. A dropped background launch (slot claimed, nothing visible) reads false, as does the brief gap between the launch and the Activity's onCreate.

Functions

Link copied to clipboard

Dismisses whatever native in-app is currently visible — the decorView overlay or the overlay Activity (only one is ever on screen: all templates share the single queue slot). The queue is untouched; the next message shows normally via the existing onDismissed → advance path. No-op when nothing is visible.

Link copied to clipboard
fun present(config: Map<String, Any?>)

Presents a native in-app from a config map — the manual / preview entry point (iOS parity: present(_ config: [AnyHashable: Any])).

Link copied to clipboard

Enables opt-in frequency caps (max displays / cooldown / expiry). Off by default.