VOPhotoPersonalizationOption

@interface VOPhotoPersonalizationOption : VOPersonalizationOption

VOPhotoPersonalizationOption represents a VOVoucher customization that allows the user to add images to their VOVoucher. Instantiate a VOPhotoPersonalizationOption and include it in the voucher creation view controller setup if you would like the user to be able to add photos. *

  • Allows the photo to be edited after it is selected.

    Note

    Default is YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL allowPhotoEditing;

    Swift

    var allowPhotoEditing: Bool { get }
  • Allows the user to add their own photos from their camera roll to the VOVoucher.

    Note

    Default is YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL canUploadPhotos;

    Swift

    var canUploadPhotos: Bool { get }
  • Allows the user to add photos taken from their camera to the VOVoucher.

    Note

    Default is YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL canTakePhotos;

    Swift

    var canTakePhotos: Bool { get }
  • Allows the user to add photos from Google image search to the VOVoucher.

    Note

    Default is YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL canAddGoogleImages;

    Swift

    var canAddGoogleImages: Bool { get }
  • The colors of the image tiles that contain the images to choose from. The colors will only be visible before during the loading phase, before the image thumbnail has finished downloading.

    Note

    Default list is: Red: #E86963, Orange: #FFAD76, Yellow: #FFDA67, Green: #77E097, Teal: #2FCCAD, Navy Blue: #509CDE, Purple: #9372FF If you do not want background colors, pass in an empty array.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<UIColor *> *imageBackgroundColors;

    Swift

    var imageBackgroundColors: [UIColor]! { get }
  • A list of suggested search terms shown to a user in the Google image search screen. If no list of suggested search terms is given, the default list from the Vouchr Server will be used.

    Note

    Default is nil.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<NSString *> *suggestedSearchTerms;

    Swift

    var suggestedSearchTerms: [String]! { get }
  • The maximum number of images returned by the VOSearchAgent. Set to zero to enable paginated fetches.

    Note

    Default is 0.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger maxSearchResults;

    Swift

    var maxSearchResults: Int { get }
  • Whether the user is allowed to type in the Google Images search bar. If this is disabled, the user will only be able to search using the suggestedSearchTerms.

    Note

    Default is YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL allowUserCustomSearch;

    Swift

    var allowUserCustomSearch: Bool { get }
  • Theme used on the VOFullScreenCameraViewController.

    Note

    Default is VOConfig defaultTheme.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) VOTheme *takeAPhotoVouchrTheme;

    Swift

    var takeAPhotoVouchrTheme: VOTheme! { get set }
  • Theme used on the VOImageMediaSearchViewController.

    Note

    Default is VOConfig defaultTheme.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) VOTheme *imageSelectorVouchrTheme;

    Swift

    var imageSelectorVouchrTheme: VOTheme! { get set }
  • Theme used on the VOFullScreenImageEditViewController.

    Note

    Default is VOConfig defaultTheme.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) VOTheme *editImageVouchrTheme;

    Swift

    var editImageVouchrTheme: VOTheme! { get set }
  • Creates a Photo personalization option with the values from the builder. Internally calls initWithBuilder.

    Declaration

    Objective-C

    + (instancetype)photoPersonalizationOptionWithBuilderBlock:
        (void (^)(VOPhotoPersonalizationOptionBuilder *))builderBlock;

    Swift

    convenience init!(builderBlock: ((VOPhotoPersonalizationOptionBuilder?) -> Void)!)

    Parameters

    builderBlock

    - the block containing the builder to construct the personalization option. Set the desired properties on the builder within the block.

    Return Value

    instancetype - VOPhotoPersonalizationOption object containing the properties specified in the builder.