InAppMessagingProtocol
public protocol InAppMessagingProtocol : AnyObject, Sendable
In-app messaging
-
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: InAppMessageDisplayDelegate? { get set }
-
Scene delegate
Declaration
Swift
@MainActor var sceneDelegate: 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
@available(*, deprecated, message: "Use setCustomAdapter(forType:factoryBlock:﹚ instead") @MainActor func setAdapterFactoryBlock( forType: CustomDisplayAdapterType, factoryBlock: @escaping @Sendable (InAppMessage, AirshipCachedAssetsProtocol) -> CustomDisplayAdapter? )
Parameters
forType
The type
factoryBlock
The factory block
-
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) -> CustomDisplayAdapter? )
Parameters
forType
The type
factoryBlock
The 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
InAppMessageDisplayDelegate
changes.Declaration
Swift
@MainActor func notifyDisplayConditionsChanged()