ChallengePersonalizationOption
@interface ChallengePersonalizationOption : PersonalizationOption
ChallengePersonalizationOption represents a Voucher customization which will allow users to add a challenge. Instantiate a ChallengePersonalizationOption if a challenge can be added to their Voucher.
*
-
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. -
Creates a
ChallengePersonalizationOptionobject with the values from the builder. Internally calls initWithBuilder.Declaration
Objective-C
+ (instancetype)challengePersonalizationOptionWithBuilderBlock: (void (^)(ChallengePersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((ChallengePersonalizationOptionBuilder?) -> Void)!)Parameters
builderBlock- the builder block with specified values for each property.
Return Value
instancetype -
ChallengePersonalizationOptionobject. *
View on GitHub
ChallengePersonalizationOption Class Reference