-
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
VOVoucherRevealManagerthat provides information and other managers to theVOVoucherRevealViewController.revealMode- the mode the
VOVoucherRevealViewControllershould 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
VOVoucherwill be displayed immediately.Declaration
Objective-C
- (void)skipEnvelopeOpeningAnimation;Swift
func skipEnvelopeOpeningAnimation()
View on GitHub
VOVoucherRevealViewController Class Reference