VOAnimatedPersonalizationOption

@interface VOAnimatedPersonalizationOption : VOPersonalizationOption

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

  • The text to be displayed at the top of the view controller.

    Note

    Default is GIPHY.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *titleText;

    Swift

    var titleText: String! { get }
  • The background color shown while images are loading.

    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, set an empty array.

    Declaration

    Objective-C

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

    Swift

    var imageBackgroundColors: [UIColor]! { get }
  • A list of suggested search terms shown before a user searches for gifs from the VOSearchAgent. If no list of suggested search terms is provided, a default ist of terms will be fetched from the Vouchr Server.

    Note

    Default is nil.

    Declaration

    Objective-C

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

    Swift

    var suggestedSearchTerms: [String]! { get }
  • The maximum number of images returned by the VOSearchAgent. Setting to zero will enable pagination and fetch all results.

    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 search bar. Disabling this will not allow a user to search anything but the suggested search terms.

    Note

    Default is YES.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL allowUserCustomSearch;

    Swift

    var allowUserCustomSearch: Bool { get }
  • 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 VOImageConfirmationViewController.

    Note

    Default is VOConfig defaultTheme.

    Declaration

    Objective-C

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

    Swift

    var addImageVouchrTheme: VOTheme! { get set }
  • Creates a VOAnimatedPersonalizationOption object with the values from the builder. Internally calls initWithBuilder.

    Declaration

    Objective-C

    + (instancetype)animatedPersonalizationOptionWithBuilderBlock:
        (void (^)(VOAnimatedPersonalizationOptionBuilder *))builderBlock;

    Swift

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

    Parameters

    builderBlock

    - the builder block with specified values for each property.

    Return Value

    instancetype - VOAnimatedPersonalizationOption object.