DBFILESPaperCreateArg

Objective-C

@interface DBFILESPaperCreateArg : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESPaperCreateArg : NSObject, DBSerializable, NSCopying

The PaperCreateArg struct.

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

Instance fields

  • The fully qualified path to the location in the user’s Dropbox where the Paper Doc should be created. This should include the document’s title and end with .paper.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }
  • The format of the provided data.

    Declaration

    Objective-C

    @property (nonatomic, readonly) DBFILESImportFormat *_Nonnull importFormat;

    Swift

    var importFormat: DBFILESImportFormat { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithPath:(nonnull NSString *)path
                            importFormat:
                                (nonnull DBFILESImportFormat *)importFormat;

    Swift

    init(path: String, importFormat: DBFILESImportFormat)

    Parameters

    path

    The fully qualified path to the location in the user’s Dropbox where the Paper Doc should be created. This should include the document’s title and end with .paper.

    importFormat

    The format of the provided data.

    Return Value

    An initialized instance.