DBFILEPROPERTIESPropertyGroup
Objective-C
@interface DBFILEPROPERTIESPropertyGroup : NSObject <DBSerializable, NSCopying>
Swift
class DBFILEPROPERTIESPropertyGroup : NSObject, DBSerializable, NSCopying
The PropertyGroup
struct.
A subset of the property fields described by the corresponding PropertyGroupTemplate. Properties are always added to a Dropbox file as a PropertyGroup. The possible key names and value types in this group are defined by the corresponding PropertyGroupTemplate.
This class implements the DBSerializable
protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
A unique identifier for the associated template.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull templateId;
Swift
var templateId: String { get }
-
The actual properties associated with the template. There can be up to 32 property types per template.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<DBFILEPROPERTIESPropertyField *> *_Nonnull fields;
Swift
var fields: [DBFILEPROPERTIESPropertyField] { get }
-
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithTemplateId:(nonnull NSString *)templateId fields: (nonnull NSArray<DBFILEPROPERTIESPropertyField *> *)fields;
Swift
init(templateId: String, fields: [DBFILEPROPERTIESPropertyField])
Parameters
templateId
A unique identifier for the associated template.
fields
The actual properties associated with the template. There can be up to 32 property types per template.
Return Value
An initialized instance.