PreviewVoucherContentsViewControllerProtocol
@protocol PreviewVoucherContentsViewControllerProtocol
PreviewVoucherContentsViewControllerProtocol
is the interface for the PreviewVoucherContentsViewController
. If a different edit view controller is used, it needs to implement this protocol.
-
Default initializer for
PreviewVoucherContentsViewController
.Declaration
Objective-C
+ (instancetype) viewControllerWithVouchrTheme:(VouchrTheme *)vouchrTheme createManager:(VoucherCreationManager *)createManager screenType:(ScreenType)screenType delegate:(id<PreviewVoucherContentsViewControllerDelegate>) delegate;
Swift
static func viewController(with vouchrTheme: VouchrTheme!, createManager: VoucherCreationManager!, screenType: ScreenType, delegate: PreviewVoucherContentsViewControllerDelegate!) -> 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
PreviewVoucherContentsViewController
callbacks. -
Undocumented
Declaration
Objective-C
- (void)setupWithCreationItems:(NSMutableArray<CreationItemImageView *> *)creationItems;
Swift
func setup(withCreationItems creationItems: NSMutableArray!)