InAppMessagingInterface

In-app messaging

Properties

Link copied to clipboard

Delegate consulted before a message is displayed, to allow the app to block or defer it.

Link copied to clipboard

The interval to wait between displaying in-app messages.

Link copied to clipboard

The interval to wait between displaying in-app messages, in whole seconds.

Link copied to clipboard
Link copied to clipboard

Called during schedule preparation to allow app-side logic to suppress the message before assets are fetched. Throwing causes the prepare operation to retry with backoff — catch internally to fail open instead.

Functions

Link copied to clipboard

Notifies In-App messages that the display conditions should be reevaluated. This should only be called when state that was used to prevent a display with InAppMessageDisplayDelegate changes.

Link copied to clipboard
abstract fun setAdapterFactoryBlock(type: CustomDisplayAdapterType, factoryBlock: (Context, InAppMessage, AirshipCachedAssets) -> CustomDisplayAdapter?)

Sets a factory block for a custom display adapter. If the factory block returns a nil adapter, the default adapter will be used.