Custom Views / View Controllers
-
Undocumented
See moreDeclaration
Objective-C
@interface VouchrWebImageView : FBShimmeringView
Swift
class VouchrWebImageView : FBShimmeringView
-
See moreSealedVoucherView
is a sealedEnvelopeView
. It shows ribbons and a seal overtop of anEnvelopeView
.Declaration
Objective-C
@interface SealedVoucherView : UIView
Swift
class SealedVoucherView : UIView
-
See moreCreationItemImageView
is the view that is dropped into theEnvelopeView
of theVoucherCreationViewController
. It represents a chosenPersonalizationOption
object by the creatingUser
.Declaration
Objective-C
@interface CreationItemImageView : VouchrWebImageView
Swift
class CreationItemImageView : VouchrWebImageView
-
The
VouchrLoadingViewProtocol
is responsible for animating any custom loading view. It is used for fullscreen loading views.Note
User is responsible for adding the loading view as a subview and constraining it to the view it should appear on.Declaration
Objective-C
@protocol VouchrLoadingViewProtocol
Swift
protocol VouchrLoadingViewProtocol
-
Undocumented
See moreDeclaration
Objective-C
@interface VouchrDialogView : UIView <VouchrDialogViewProtocol> + (instancetype)vouchrDialogWithVouchrTheme:(VouchrTheme *)vouchrTheme; - (void)keyboardWillShow:(NSNotification *)notification; - (void)keyboardWillHide:(NSNotification *)notification; @end
Swift
class VouchrDialogView : UIView, VouchrDialogViewProtocol
-
Undocumented
See moreDeclaration
Objective-C
@protocol VouchrDialogViewProtocol - (void)showOnParentViewController:(UIViewController *)parentViewController; - (void)setTitle:(nullable NSString *)title; - (void)setBodyText:(nullable NSString *)body; - (void)setPositiveButtonText:(NSString *)buttonText withCompletionHandler:(nullable void (^)(void))completionHandler; - (void)setNegativeButtonText:(NSString *)buttonText withCompletionHandler:(nullable void (^)(void))completionHandler; - (void)setError:(nullable NSError *)error; - (void)setView:(UIView *)view; - (void)dismiss; @end
Swift
protocol VouchrDialogViewProtocol
-
VouchrActionSheetViewController is a custom action sheet used by the SDK. It works similarly to a UIAlertController with style UIAlertControllerStyleActionSheet. Each action sheet item is an action in the controller. If there are too many actions to fit on screen, the actions will become scrollable. A cancel action is automatically added.
See moreDeclaration
Objective-C
@interface VouchrActionSheetViewController : UIViewController
Swift
class VouchrActionSheetViewController : UIViewController
-
The
See moreVouchrActionSheetViewControllerDelegate
protocol is responsible for responding toVouchrActionSheetItem
selection and dismissing theVouchrActionSheetViewController
.Declaration
Objective-C
@protocol VouchrActionSheetViewControllerDelegate <NSObject>
Swift
protocol VouchrActionSheetViewControllerDelegate : NSObjectProtocol
-
VouchrActionSheetItem represents one item inside a VouchrActionSheetViewController.
See moreDeclaration
Objective-C
@interface VouchrActionSheetItem : NSObject
Swift
class VouchrActionSheetItem : NSObject