DBFILEPROPERTIESPropertyFieldTemplate

@interface DBFILEPROPERTIESPropertyFieldTemplate
    : NSObject <DBSerializable, NSCopying>

The PropertyFieldTemplate struct.

Defines how a single property field may be structured. Used exclusively by PropertyGroupTemplate.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

  • Key of the property field being described. Property field keys can be up to 256 bytes.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull name;

    Swift

    var name: String { get }
  • Description of the property field. Property field descriptions can be up to 1024 bytes.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull description_;

    Swift

    var description_: String { get }
  • Data type of the value of this property field. This type will be enforced upon property creation and modifications.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DBFILEPROPERTIESPropertyType *_Nonnull type;

    Swift

    var type: DBFILEPROPERTIESPropertyType { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name
                            description_:(nonnull NSString *)description_
                                    type:(nonnull DBFILEPROPERTIESPropertyType *)
                                             type;

    Swift

    init(name: String, description_: String, type: DBFILEPROPERTIESPropertyType)

    Parameters

    name

    Key of the property field being described. Property field keys can be up to 256 bytes.

    description_

    Description of the property field. Property field descriptions can be up to 1024 bytes.

    type

    Data type of the value of this property field. This type will be enforced upon property creation and modifications.

    Return Value

    An initialized instance.