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, theVoucherRevealViewController
will dismiss.Declaration
Objective-C
- (void)nextButtonPressedFromVoucherRevealViewController: (VoucherRevealViewController *)revealViewController;
Swift
optional func nextButtonPressed(from revealViewController: VoucherRevealViewController!)
Parameters
revealViewController
- The
VoucherRevealViewController
that 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, theVoucherRevealViewController
will dismiss.Declaration
Objective-C
- (void)cancelButtonPressedFromVoucherRevealViewController: (VoucherRevealViewController *)revealViewController;
Swift
optional func cancelButtonPressed(from revealViewController: VoucherRevealViewController!)
Parameters
revealViewController
- The
VoucherRevealViewController
that the cancel button was tapped from. -
Called when a user taps on an element that represents a
VoucherMedia
to 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 -AddNoteViewController
VoucherMediaTypeImage, VoucherMediaTypeAnimated -SingleGalleryViewController
VoucherMediaTypeYoutube -YoutubePlayerViewController
VoucherMediaTypeVideo -FullScreenVideoPlayerViewController
Declaration
Objective-C
- (UIViewController<RevealPersonalizationViewControllerProtocol> *) voucherRevealPersonalizationviewControllerForVoucherMedia: (VoucherMedia *)voucherMedia;
Parameters
voucherMedia
- The media object that was tapped on.
Return Value
a view controller that shows the
VoucherMedia
in more detail, nil if the default view controller should be used.