DBFILEPROPERTIESPropertyField

@interface DBFILEPROPERTIESPropertyField : NSObject <DBSerializable, NSCopying>

The PropertyField struct.

Raw key/value data to be associated with a Dropbox file. Property fields are added to Dropbox files as a PropertyGroup.

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 associated with a file and template. Keys can be up to 256 bytes.

    Declaration

    Objective-C

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

    Swift

    var name: String { get }
  • Value of the property field associated with a file and template. Values can be up to 1024 bytes.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)name
                                   value:(nonnull NSString *)value;

    Swift

    init(name: String, value: String)

    Parameters

    name

    Key of the property field associated with a file and template. Keys can be up to 256 bytes.

    value

    Value of the property field associated with a file and template. Values can be up to 1024 bytes.

    Return Value

    An initialized instance.