VoucherRevealViewControllerDelegate
@protocol VoucherRevealViewControllerDelegate <NSObject>
VoucherRevealViewControllerDelegate is the delegate used to supply additional information needed on the VoucherRevealViewController.
-
Called when the next button is pressed in the
VoucherRevealViewController. If this delegate method is implemented, the screen will not be dismissed automatically. If not implemented, theVoucherRevealViewControllerwill dismiss.Declaration
Objective-C
- (void)nextButtonPressedFromVoucherRevealViewController: (VoucherRevealViewController *)revealViewController;Swift
optional func nextButtonPressed(from revealViewController: VoucherRevealViewController!)Parameters
revealViewController- The
VoucherRevealViewControllerthat the next button was tapped from. -
Called when the cancel button is pressed in the
VoucherRevealViewController. If this delegate method is implemented, the screen will not be dismissed automatically. If not implemented, theVoucherRevealViewControllerwill dismiss.Declaration
Objective-C
- (void)cancelButtonPressedFromVoucherRevealViewController: (VoucherRevealViewController *)revealViewController;Swift
optional func cancelButtonPressed(from revealViewController: VoucherRevealViewController!)Parameters
revealViewController- The
VoucherRevealViewControllerthat the cancel button was tapped from. -
Called when a user taps on an element that represents a
VoucherMediato allow a custom view controller to be shown in place of the default. If not implemented or nil is returned, the default reveal personalization view controller will be used. Defaults: VoucherMediaTypeNote -AddNoteViewControllerVoucherMediaTypeImage, VoucherMediaTypeAnimated -SingleGalleryViewControllerVoucherMediaTypeYoutube -YoutubePlayerViewControllerVoucherMediaTypeVideo -FullScreenVideoPlayerViewControllerDeclaration
Objective-C
- (UIViewController<RevealPersonalizationViewControllerProtocol> *) voucherRevealPersonalizationviewControllerForVoucherMedia: (VoucherMedia *)voucherMedia;Parameters
voucherMedia- The media object that was tapped on.
Return Value
a view controller that shows the
VoucherMediain more detail, nil if the default view controller should be used.
View on GitHub
VoucherRevealViewControllerDelegate Protocol Reference