VOSoundPersonalizationOption

@interface VOSoundPersonalizationOption : VOPersonalizationOption

VOSoundPersonalizationOption represents a VOVoucher customization which will be available to the user to add a sound to the VOMutableVoucher. Instantiate a VOSoundPersonalizationOption if you would like the user to be able to add a sound to their VOVoucher.

Record Sound Personalization Select Sound Personalization *

  • Allow the user to record their sounds and add it to their VOVoucher.

    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 VOVoucher from 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 (^)(VOSoundPersonalizationOptionBuilder *))builderBlock;

    Swift

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

    Parameters

    builderBlock

    - the builder block with specified values for each property.

    Return Value

    instancetype - VOSoundPersonalizationOption object.