DBFILEREQUESTSCreateFileRequestArgs

@interface DBFILEREQUESTSCreateFileRequestArgs
    : NSObject <DBSerializable, NSCopying>

The CreateFileRequestArgs struct.

Arguments for create.

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

  • The title of the file request. Must not be empty.

    Declaration

    Objective-C

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

    Swift

    var title: String { get }
  • The path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will be relative to the app folder.

    Declaration

    Objective-C

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

    Swift

    var destination: String { get }
  • The deadline for the file request. Deadlines can only be set by Pro and Business accounts.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable)
        DBFILEREQUESTSFileRequestDeadline *deadline;

    Swift

    var deadline: DBFILEREQUESTSFileRequestDeadline? { get }
  • Whether or not the file request should be open. If the file request is closed, it will not accept any file submissions, but it can be opened later.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSNumber *_Nonnull open;

    Swift

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

    Declaration

    Objective-C

    - (nonnull instancetype)
    initWithTitle:(nonnull NSString *)title
      destination:(nonnull NSString *)destination
         deadline:(nullable DBFILEREQUESTSFileRequestDeadline *)deadline
             open:(nullable NSNumber *)open;

    Swift

    init(title: String, destination: String, deadline: DBFILEREQUESTSFileRequestDeadline?, open: NSNumber?)

    Parameters

    title

    The title of the file request. Must not be empty.

    destination

    The path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will be relative to the app folder.

    deadline

    The deadline for the file request. Deadlines can only be set by Pro and Business accounts.

    open

    Whether or not the file request should be open. If the file request is closed, it will not accept any file submissions, but it can be opened later.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTitle:(nonnull NSString *)title
                              destination:(nonnull NSString *)destination;

    Swift

    init(title: String, destination: String)

    Parameters

    title

    The title of the file request. Must not be empty.

    destination

    The path of the folder in the Dropbox where uploaded files will be sent. For apps with the app folder permission, this will be relative to the app folder.

    Return Value

    An initialized instance.