VOVoucherRevealViewControllerDelegate
@protocol VOVoucherRevealViewControllerDelegate <NSObject>
VOVoucherRevealViewControllerDelegate is the delegate used to supply additional information needed on the VOVoucherRevealViewController.
-
Called when the next button is pressed in the
VOVoucherRevealViewController. If this delegate method is implemented, the screen will not be dismissed automatically. If not implemented, theVOVoucherRevealViewControllerwill dismiss.Declaration
Objective-C
- (void)nextButtonPressedFromVoucherRevealViewController: (VOVoucherRevealViewController *)revealViewController;Swift
optional func nextButtonPressed(from revealViewController: VOVoucherRevealViewController!)Parameters
revealViewController- The
VOVoucherRevealViewControllerthat the next button was tapped from. -
Called when the cancel button is pressed in the
VOVoucherRevealViewController. If this delegate method is implemented, the screen will not be dismissed automatically. If not implemented, theVOVoucherRevealViewControllerwill dismiss.Declaration
Objective-C
- (void)cancelButtonPressedFromVoucherRevealViewController: (VOVoucherRevealViewController *)revealViewController;Swift
optional func cancelButtonPressed(from revealViewController: VOVoucherRevealViewController!)Parameters
revealViewController- The
VOVoucherRevealViewControllerthat the cancel button was tapped from. -
Called when a user taps on an element that represents a
VOVoucherMediato 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: VOVoucherMediaTypeNote -VOAddNoteViewControllerVOVoucherMediaTypeImage, VoucherMediaTypeAnimated -VOSingleGalleryViewControllerVOVoucherMediaTypeYoutube -VOYouTubePlayerViewControllerVOVoucherMediaTypeVideo -VOFullScreenVideoPlayerViewControllerDeclaration
Objective-C
- (UIViewController<VORevealPersonalizationViewControllerProtocol> *) voucherRevealPersonalizationviewControllerForVoucherMedia: (VOVoucherMedia *)voucherMedia;Parameters
voucherMedia- The media object that was tapped on.
Return Value
a view controller that shows the
VOVoucherMediain more detail, nil if the default view controller should be used. -
Called when a user taps on an element that represents a reveal cell that is not a media item, 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.
Declaration
Objective-C
- (UIViewController<VORevealPersonalizationViewControllerProtocol> *) voucherRevealPersonalizationViewControllerForGiftWithVoucher: (VOVoucher *)voucher;Parameters
voucher- The voucher object.
Return Value
a view controller that shows the
VORevealCellProtocolin more detail, nil if the default view controller should be used. -
Called to retrieve the additonal claim paramers in order to add them to the claim request
Declaration
Objective-C
- (NSDictionary *)claimDestInfoForVoucher:(VOVoucher *)voucher;Swift
optional func claimDestInfo(for voucher: VOVoucher!) -> [AnyHashable : Any]!Parameters
voucher- the voucher to retrieve the claim dest info from
Return Value
a dictionary containing additional claim parameters
View on GitHub
VOVoucherRevealViewControllerDelegate Protocol Reference