InAppMessaging
public protocol InAppMessaging : AnyObject, Sendable
In-app messaging
-
Called when the Message is requested to be displayed. Return
trueif the message is ready to display,falseotherwise.Declaration
Swift
@MainActor var onIsReadyToDisplay: (@MainActor @Sendable (_ message: InAppMessage, _ scheduleID: String) -> Bool)? { get set } -
Theme manager
Declaration
Swift
@MainActor var themeManager: InAppAutomationThemeManager { get } -
Display interval
Declaration
Swift
@MainActor var displayInterval: TimeInterval { get set } -
Display delegate
Declaration
Swift
@MainActor var displayDelegate: (any InAppMessageDisplayDelegate)? { get set } -
Scene delegate
Declaration
Swift
@MainActor var sceneDelegate: (any InAppMessageSceneDelegate)? { get set } -
Sets a factory block for a custom display adapter. If the factory block returns a nil adapter, the default adapter will be used.
Declaration
Swift
@MainActor func setCustomAdapter( forType: CustomDisplayAdapterType, factoryBlock: @escaping @Sendable (DisplayAdapterArgs) -> (any CustomDisplayAdapter)? )Parameters
forTypeThe type
factoryBlockThe factory block
-
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
InAppMessageDisplayDelegatechanges.Declaration
Swift
@MainActor func notifyDisplayConditionsChanged()
View on GitHub