MDInterceptDelegate

@objc
public protocol MDInterceptDelegate

A delegate for receiving an intercept displayed information. Allows listening to intercepts related events. i.e. Actions taken by user in Form Invitations and App Rating prompts (App Ratings is coming soon).

  • This event is triggered when intercept was displayed to end user.

    Declaration

    Swift

    @objc
    optional func interceptDidDisplay(interceptDelegateData: MDInterceptDelegateData)

    Parameters

    interceptDelegateData

    MDInterceptDelegateData object that contains:

  • This event is triggered when intercept was accepted by user from alert (usually “Provide Feedback”) or SDK banner.

    Declaration

    Swift

    @objc
    optional func interceptDidAccept(interceptDelegateData: MDInterceptDelegateData)

    Parameters

    interceptDelegateData

    MDInterceptDelegateData object that contains:

  • This event is triggered when intercept was declined by user from alert (usually “No Thanks”) or SDK banner.

    Declaration

    Swift

    @objc
    optional func interceptDidDecline(interceptDelegateData: MDInterceptDelegateData)

    Parameters

    interceptDelegateData

    MDInterceptDelegateData object that contains:

  • This event is triggered when intercept was deferred by user from alert (usually “Maybe Later”) or SDK banner.

    Declaration

    Swift

    @objc
    optional func interceptDidDefer(interceptDelegateData: MDInterceptDelegateData)

    Parameters

    interceptDelegateData

    MDInterceptDelegateData object that contains:

  • This event is triggered when intercept was closed bty the app

    Declaration

    Swift

    @objc
    optional func interceptDidClose(interceptDelegateData: MDInterceptDelegateData)

    Parameters

    interceptDelegateData

    MDInterceptDelegateData object that contains:

  • This event is triggered when SKStoreReviewController was triggered by the SDK.

    Declaration

    Swift

    @objc
    optional func interceptDidTriggerSKStoreReviewController(interceptDelegateData: MDInterceptDelegateData)

    Parameters

    interceptDelegateData

    MDInterceptDelegateData object that contains: