AnimatedPersonalizationOption

@interface AnimatedPersonalizationOption : PersonalizationOption

AnimatedPersonalizationOption represents a Voucher customization that allows the user to add animated images to their Voucher. Instantiate a AnimatedPersonalizationOption and include it in the VoucherCreationViewController setup if you would like the user to be able to add animated photos.

Animated Personalization *

  • 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 SearchAgent. 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 SearchAgent. 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 VouchrImageMediaSearchViewController.

    Note

    Default is VouchrConfig defaultTheme.

    Declaration

    Objective-C

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

    Swift

    var imageSelectorVouchrTheme: VouchrTheme! { get set }
  • Theme used on the VouchrImageConfirmationViewController.

    Note

    Default is VouchrConfig defaultTheme.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    builderBlock

    - the builder block with specified values for each property.

    Return Value

    instancetype - AnimatedPersonalizationOption object.