PyzeInAppMessageHandlerDelegate

@protocol PyzeInAppMessageHandlerDelegate <NSObject>
  • Pyze In app message handler delegate. This has one optional call to action method which will inform your class when user clicks on one of the in-app messsage buttons. *
  • - Since: 2.3.0
    • Call to action handler for in-app message buttons implemented by your view controller to receive in-app message button click actions. *
    • - parameter: buttonIndex Button index
    • - parameter: title Title provided for the button
    • - parameter: urlString Deeplink url string provided.
    • - parameter: status Pyze deep link status. *
    • - see: showUnreadInAppNotificationUI and showInAppNotificationUI methods. *
    • - Since: 2.3.0 *

    Declaration

    Objective-C

    - (void)inAppMessageButtonHandlerWithIndex:(NSInteger)buttonIndex
                                   buttonTitle:(NSString *)title
                           containingURLString:(NSString *)urlString
                            withDeepLinkStatus:(PyzeDeepLinkStatus)status;

    Swift

    optional func inAppMessageButtonHandler(with buttonIndex: Int, buttonTitle title: String!, containingURLString urlString: String!, with status: PyzeDeepLinkStatus)

    Parameters

    buttonIndex

    Button index

    title

    Title provided for the button

    urlString

    Deeplink url string provided.

    status

    Pyze deep link status.