InAppMessageViewDelegate

public protocol InAppMessageViewDelegate

Delegate for receiving callback pertaining to in-app message lifecycle state

  • Called whenever the view appears

    Declaration

    Swift

    @MainActor
    func onAppear()
  • Called when a button dismisses the in-app message

    Declaration

    Swift

    @MainActor
    func onButtonDismissed(buttonInfo: InAppMessageButtonInfo)

    Parameters

    buttonInfo

    The button info on the dismissing button.

  • Called when a message dismisses after the set timeout period

    Declaration

    Swift

    @MainActor
    func onTimedOut()
  • Called when a message dismisses with the close button or banner drawer handle

    Declaration

    Swift

    @MainActor
    func onUserDismissed()
  • Called when a message is dismissed via a tap to the message body

    Declaration

    Swift

    @MainActor
    func onMessageTapDismissed()