VoucherRevealFlowCoordinator
@interface VoucherRevealFlowCoordinator : NSObject
VoucherRevealFlowCoordinator 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<VoucherRevealFlowDelegate, VoucherGameDelegate> delegate; -
Default initializer for
VoucherCreationCoordinator.Declaration
Objective-C
+ (nonnull instancetype) voucherRevealFlowCoordinatorWithManager:(nonnull VoucherRevealManager *)manager delegate: (nullable id<VoucherRevealFlowDelegate, VoucherGameDelegate>)delegate;Parameters
manager- An instance of
VoucherRevealManagerused in the flow of revealing aVoucher.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:(RevealMode)revealMode backgroundColor:(nullable UIColor *)backgroundColor;Swift
func startFlow(on viewController: UIViewController, revealMode: RevealMode, backgroundColor: UIColor?)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.
View on GitHub
VoucherRevealFlowCoordinator Class Reference