MDFormDelegate

@objc
public protocol MDFormDelegate

A delegate for receiving a form displayed information. This API method allows listening to form related events, e.g. form was submitted.

  • This event is triggered when user submitted for.

    Declaration

    Swift

    @objc
    optional func formDidSubmit(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains:

  • This event is triggered when user closed form without submitting feedback.

    Declaration

    Swift

    @objc
    optional func formDidDismiss(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains:

  • This event is triggered when SDK closes form (and not user) after submitting feedback.

    Declaration

    Swift

    @objc
    optional func formDidClose(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains:

  • This event is triggered when a form is displayed via code form or invitation form.

    Declaration

    Swift

    @objc
    optional func formDidDisplay(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains:

  • This event is triggered when form includes blocked external links.

    Declaration

    Swift

    @objc
    optional func formDidBlockExternalUrl(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains:

  • This event is triggered when link was selected.

    Declaration

    Swift

    @objc
    optional func formDidLinkSelect(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains:

  • This event is triggered when the thank you prompt was displayed after the form was submitted

    Declaration

    Swift

    @objc
    optional func formDidThankYouPrompt(formDelegateData: MDFormDelegateData)

    Parameters

    formDelegateData

    MDFormDelegateData object that contains: