VOVoucherRevealFlowCoordinator
@interface VOVoucherRevealFlowCoordinator : NSObject
VOVoucherRevealFlowCoordinator
is responsible for the reveal setup and navigation.
-
Delegate methods called throughout the reveal process to allow for additional actions and screens to take place
Note
Default is nil.Declaration
Objective-C
@property (readwrite, nonatomic, nullable) id<VOVoucherRevealFlowDelegate, VOVoucherGameDelegate> delegate;
-
Default initializer for
VoucherCreationCoordinator
.Declaration
Objective-C
+ (nonnull instancetype) voucherRevealFlowCoordinatorWithManager: (nonnull VOVoucherRevealManager *)manager delegate: (nullable id<VOVoucherRevealFlowDelegate, VOVoucherGameDelegate>) delegate;
Parameters
manager
- An instance of
VOVoucherRevealManager
used in the flow of revealing aVOVoucher
.delegate
- The delegate used for additional actions outside of the reveal screen.
-
Used to start the reveal flow on a view controller.
Declaration
Objective-C
- (void)startFlowOnViewController:(nonnull UIViewController *)viewController revealMode:(VORevealMode)revealMode backgroundColor:(nullable UIColor *)backgroundColor giftPackageFactory: (nonnull id<VOGiftPackageFactory>)giftPackageFactory;
Swift
func startFlow(on viewController: UIViewController, revealMode: VORevealMode, backgroundColor: UIColor?, giftPackageFactory: VOGiftPackageFactory)
Parameters
viewController
- the view controller the reveal flow starts on.
revealMode
- the mode the reveal should be started in.
backgroundColor
- the background color of the reveal screen.