VONoteMedia

@interface VONoteMedia : VOVoucherMedia

VONoteMedia is a VouchrMedia for text based media.

  • The text that should be displayed.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nonnull text;

    Swift

    var text: String { get set }
  • The name of the font the text should be displayed in.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *font;

    Swift

    var font: String? { get set }
  • Hex value string of the color that the text should be displayed in.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *colorString;

    Swift

    var colorString: String? { get set }
  • The transform rotation angle the text should be displayed at.

    Declaration

    Objective-C

    @property (readonly, nonatomic) long angle;

    Swift

    var angle: Int { get }
  • The font size the text should be displayed at.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) long size;

    Swift

    var size: Int { get set }
  • The alignment the text should use when displayed.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSString *_Nonnull alignment;

    Swift

    var alignment: String { get set }
  • Initializer to convert an NSDictionary to an VONoteMedia.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDictionary:(nonnull NSDictionary *)dictionary;

    Swift

    init(dictionary: [AnyHashable : Any])

    Parameters

    dictionary

    - dictionary form of an VONoteMedia.

    Return Value

    Instance of VONoteMedia.

  • Initializer to create an VONoteMedia.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithText:(nonnull NSString *)text
                                    font:(nullable NSString *)font
                             colorString:(nullable NSString *)colorString
                                   angle:(long)angle
                                    size:(long)size
                               alignment:(nonnull NSString *)alignment;

    Swift

    init(text: String, font: String?, colorString: String?, angle: Int, size: Int, alignment: String)

    Parameters

    text

    - The text of the VONoteMedia.

    font

    - The name of the font to display the text in.

    colorString

    - Hex value string of the color the text should be displayed in.

    angle

    - The rotation angle to display the text at.

    size

    - The font size the text should be displayed at.

    alignment

    - The alignment the text should use when displayed.

    Return Value

    Instance of VONoteMedia.