-
The delegate for the
VOVoucherRevealViewController
.Declaration
Objective-C
@property (readwrite, nonatomic) id<VOVoucherRevealViewControllerDelegate> delegate;
Swift
weak var delegate: VOVoucherRevealViewControllerDelegate! { get set }
-
Default initializer for the
VOVoucherRevealViewController
.Declaration
Objective-C
+ (instancetype) viewControllerWithRevealManager:(VOVoucherRevealManager *)revealManager revealMode:(VORevealMode)revealMode score:(NSInteger)score gameDelegate:(id<VOVoucherGameDelegate>)gameDelegate giftPackageFactory: (id<VOGiftPackageFactory>)giftPackageFactory;
Parameters
revealManager
- the
VOVoucherRevealManager
that provides information and other managers to theVOVoucherRevealViewController
.revealMode
- the mode the
VOVoucherRevealViewController
should be in.gameDelegate
- game delegate for showing a custom game instead of a default.
Return Value
instance of
VOVoucherRevealViewController
. -
If called before viewWillAppear, the envelope animation will be skipped and the contents of the
VOVoucher
will be displayed immediately.Declaration
Objective-C
- (void)skipEnvelopeOpeningAnimation;
Swift
func skipEnvelopeOpeningAnimation()