VOChallengePersonalizationOption
@interface VOChallengePersonalizationOption : VOPersonalizationOption
VOChallengePersonalizationOption
represents a VOVoucher
customization which will allow users to add a challenge. Instantiate a VOChallengePersonalizationOption
if a challenge can be added to their VOVoucher
.
*
-
The title shown in the default challenge carousel selection screen.
Note
Deafult is nil.Declaration
Objective-C
@property (readonly, nonatomic) NSString *titleText;
Swift
var titleText: String! { get }
-
A boolean on whether or not to show the intro ‘add a challenge’ card.
Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL showIntroChallengeCard;
Swift
var showIntroChallengeCard: Bool { get }
-
Title text of the intro ‘add a challenge’ card.
Note
Default isAdd a Challenge!
.Declaration
Objective-C
@property (readonly, nonatomic) NSString *introChallengeCardTitle;
Swift
var introChallengeCardTitle: String! { get }
-
Description text of the intro ‘add a challenge’ card.
Note
Default isChoose a fun activity they do to unwrap your
.! Declaration
Objective-C
@property (readonly, nonatomic) NSString *introChallengeCardDescription;
Swift
var introChallengeCardDescription: String! { get }
-
Background image of the intro ‘add a challenge’ card.
Note
Default is background_add_challenge.png.Declaration
Objective-C
@property (readonly, nonatomic) UIImage *introChallengeCardImage;
Swift
var introChallengeCardImage: UIImage! { get }
-
List of game datas that can be added as a challenge. If the list is empty or nil a network request is made to the VouchrServer to get a list of supported gameDatas.
Note
Default is nil.Declaration
Objective-C
@property (readonly, nonatomic) NSArray<VOGameData *> *gameDatas;
Swift
var gameDatas: [VOGameData]! { get }
-
Creates a
VOChallengePersonalizationOption
object with the values from the builder. Internally calls initWithBuilder.Declaration
Objective-C
+ (instancetype)challengePersonalizationOptionWithBuilderBlock: (void (^)(VOChallengePersonalizationOptionBuilder *))builderBlock;
Swift
convenience init!(builderBlock: ((VOChallengePersonalizationOptionBuilder?) -> Void)!)
Parameters
builderBlock
- the builder block with specified values for each property.
Return Value
instancetype -
VOChallengePersonalizationOption
object. *