SoundPersonalizationOption
@interface SoundPersonalizationOption : PersonalizationOption
SoundPersonalizationOption represents a Voucher customization which will be available to the user to add a sound to the MutableVoucher. Instantiate a SoundPersonalizationOption if you would like the user to be able to add a sound to their Voucher.
*
-
Allow the user to record their sounds and add it to their
Voucher.Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canRecord;Swift
var canRecord: Bool { get } -
Allow the user to select and add a sound to their
Voucherfrom a list of prerecorded sounds fetched from the Vouchr Server.Note
Default is YES.Declaration
Objective-C
@property (readonly, nonatomic) BOOL canChoosePreselectedSounds;Swift
var canChoosePreselectedSounds: Bool { get } -
The maximum duration (in seconds) of a user’s recorded sound.
Note
Default is 5 seconds.Declaration
Objective-C
@property (readonly, nonatomic) NSInteger maxRecordingLength;Swift
var maxRecordingLength: Int { get } -
Creates a sound personalization option with the values from the builder. Internally calls initWithBuilder.
Declaration
Objective-C
+ (instancetype)soundPersonalizationOptionWithBuilderBlock: (void (^)(SoundPersonalizationOptionBuilder *))builderBlock;Swift
convenience init!(builderBlock: ((SoundPersonalizationOptionBuilder?) -> Void)!)Parameters
builderBlock- the builder block with specified values for each property.
Return Value
instancetype -
SoundPersonalizationOptionobject.
View on GitHub
SoundPersonalizationOption Class Reference