VOWrappingPersonalizationOption

@interface VOWrappingPersonalizationOption : VOPersonalizationOption

VOWrappingPersonalizationOption represents a VOVoucher customization which will be available to the user to add a custom wrapping paper in the voucher creation view controller. *

  • A list of wrapping paper groups displayed to the user. Each group should represent a particular theme or occasion. Default is nil. If no list is provided, the default list of categories will be fetched from the Vouchr server *

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<VOWrappingPaperCategory *> *wrappingCategories;

    Swift

    var wrappingCategories: [VOWrappingPaperCategory]! { get }
  • A list of suggested search terms shown to a user in the Google image search screen - default is nil. If no list of terms is provided, the default list will be fetched from the Vouchr server. *

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSArray<VOWrappingPaperMedia *> *searchSuggestions;

    Swift

    var searchSuggestions: [VOWrappingPaperMedia]! { get }
  • Set a title for the wrapping paper screen - default is Wrap your ! *

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *titleText;

    Swift

    var titleText: String! { get }
  • Placeholder text for the search bar located in the footer at the bottom of the screen. Default text is Search for any occasion. *

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *searchHintFooterLabelText;

    Swift

    var searchHintFooterLabelText: String! { get }
  • Allows users to upload photos from their camera roll to be used as wrapping papers - default is NO *

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL canUploadPhotos;

    Swift

    var canUploadPhotos: Bool { get }
  • Allows users to search and use wrapping papers from Google Images - Default is NO *

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL canSearch;

    Swift

    var canSearch: Bool { get }
  • Creates a VOWrappingPersonalizationOption with values set in the builder.

    Note

    Internally calls initWithBuilder

    Declaration

    Objective-C

    + (instancetype)wrappingPersonalizationOptionWithBuilderBlock:
        (void (^)(VOWrappingPersonalizationOptionBuilder *))builderBlock;

    Swift

    convenience init!(builderBlock: ((VOWrappingPersonalizationOptionBuilder?) -> 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 - VOWrappingPersonalizationOption object containing the properties specified in the builder. *