InAppMessageDisplayDelegate
public protocol InAppMessageDisplayDelegate : AnyObject, Sendable
Message display delegate
-
Called to check if the message is ready to be displayed. This method will be called for every message that is pending display whenever a display condition changes. Use
notifyDisplayConditionsChangedto notify whenever a condition changes to reevaluate the pending In-App messages.Declaration
Swift
@MainActor func isMessageReadyToDisplay(_ message: InAppMessage, scheduleID: String) -> BoolParameters
messageThe message
scheduleIDThe schedule ID
Return Value
trueif the message is ready to display,falseotherwise. -
Called when a message will be displayed.
Declaration
Swift
@MainActor func messageWillDisplay(_ message: InAppMessage, scheduleID: String)Parameters
messageThe message
scheduleIDThe schedule ID
-
Called when a message finished displaying
Declaration
Swift
@MainActor func messageFinishedDisplaying(_ message: InAppMessage, scheduleID: String)Parameters
messageThe message
scheduleIDThe schedule ID
View on GitHub