VOPreviewVoucherContentsViewControllerProtocol
@protocol VOPreviewVoucherContentsViewControllerProtocol
VOPreviewVoucherContentsViewControllerProtocol
is the interface for the VOPreviewVoucherContentsViewController
. If a different edit view controller is used, it needs to implement this protocol.
-
Default initializer for
VOPreviewVoucherContentsViewController
.Declaration
Objective-C
+ (nonnull instancetype) viewControllerWithVouchrTheme:(nonnull VOTheme *)vouchrTheme createManager: (nonnull VOVoucherCreationManager *)createManager screenType:(VOScreenType)screenType delegate: (nonnull id< VOPreviewVoucherContentsViewControllerDelegate>) delegate;
Swift
static func viewController(withVouchrTheme vouchrTheme: VOTheme, createManager: VOVoucherCreationManager, screenType: VOScreenType, delegate: VOPreviewVoucherContentsViewControllerDelegate) -> Self
Parameters
vouchrTheme
- Used to set up view controller according to pre-configured theme settings.
createManager
- The manager responsible for handling the flow management in the creation process.
screenType
- The type of screen to be presented, e.g. Edit Contents or Preview Contents.
delegate
- The object responsible for implementing
VOPreviewVoucherContentsViewController
callbacks. -
Undocumented
Declaration
Objective-C
- (void)setupWithCreationItems:(NSMutableArray<VOCreationItemView *> *)creationItems;
Swift
func setup(withCreationItems creationItems: NSMutableArray)