DBFILESRelocationPath

Objective-C

@interface DBFILESRelocationPath : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESRelocationPath : NSObject, DBSerializable, NSCopying

The RelocationPath 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

  • Path in the user’s Dropbox to be copied or moved.

    Declaration

    Objective-C

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

    Swift

    var fromPath: String { get }
  • Path in the user’s Dropbox that is the destination.

    Declaration

    Objective-C

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

    Swift

    var toPath: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFromPath:(nonnull NSString *)fromPath
                                      toPath:(nonnull NSString *)toPath;

    Swift

    init(fromPath: String, toPath: String)

    Parameters

    fromPath

    Path in the user’s Dropbox to be copied or moved.

    toPath

    Path in the user’s Dropbox that is the destination.

    Return Value

    An initialized instance.