VOVoucherRevealFlowDelegate

@protocol VOVoucherRevealFlowDelegate <NSObject>


@optional

/**
 Called when a user taps on an element that represents a `VOVoucherMedia` 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:
 VOVoucherMediaTypeNote - `VOAddNoteViewController`
 VOVoucherMediaTypeImage, VoucherMediaTypeAnimated - `VOSingleGalleryViewController`
 VOVoucherMediaTypeYoutube - `VOYouTubePlayerViewController`
 VOVoucherMediaTypeVideo - `VOFullScreenVideoPlayerViewController`
 
 @param voucherMedia - The media object that was tapped on.
 @return a view controller that shows the `VOVoucherMedia` in more detail, nil if the default view controller should be used.
 */
- (UIViewController <VORevealPersonalizationViewControllerProtocol> *)voucherRevealPersonalizationviewControllerForVoucherMedia:(VOVoucherMedia *)voucherMedia;


/**
 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.

 
 @param voucher - The voucher object.
 @return a view controller that shows the `VORevealCellProtocol` in more detail, nil if the default view controller should be used.
 */
- (UIViewController <VORevealPersonalizationViewControllerProtocol> *)voucherRevealPersonalizationViewControllerForGiftWithVoucher:(VOVoucher *)voucher;

/**
 Used to retrieve the destInfo for the current voucher
 @param voucher - The voucher object
 @return a dictionary containing the above values with names identical to the method parameter names
 */
- (NSDictionary *)claimDestInfoForVoucher:(VOVoucher *)voucher;

@end

Undocumented

  • Called when a user taps on an element that represents a VOVoucherMedia 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: VOVoucherMediaTypeNote - VOAddNoteViewController VOVoucherMediaTypeImage, VoucherMediaTypeAnimated - VOSingleGalleryViewController VOVoucherMediaTypeYoutube - VOYouTubePlayerViewController VOVoucherMediaTypeVideo - VOFullScreenVideoPlayerViewController

    Declaration

    Objective-C

    - (nonnull UIViewController<VORevealPersonalizationViewControllerProtocol> *)
        voucherRevealPersonalizationviewControllerForVoucherMedia:
            (nonnull VOVoucherMedia *)voucherMedia;

    Parameters

    voucherMedia

    - The media object that was tapped on.

    Return Value

    a view controller that shows the VOVoucherMedia in 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

    - (nonnull UIViewController<VORevealPersonalizationViewControllerProtocol> *)
        voucherRevealPersonalizationViewControllerForGiftWithVoucher:
            (nonnull VOVoucher *)voucher;

    Parameters

    voucher

    - The voucher object.

    Return Value

    a view controller that shows the VORevealCellProtocol in more detail, nil if the default view controller should be used.

  • Used to retrieve the destInfo for the current voucher

    Declaration

    Objective-C

    - (nonnull NSDictionary *)claimDestInfoForVoucher:(nonnull VOVoucher *)voucher;

    Swift

    optional func claimDestInfo(for voucher: VOVoucher) -> [AnyHashable : Any]

    Parameters

    voucher

    - The voucher object

    Return Value

    a dictionary containing the above values with names identical to the method parameter names