DBFILESRelocationBatchArgBase

Objective-C

@interface DBFILESRelocationBatchArgBase : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESRelocationBatchArgBase : NSObject, DBSerializable, NSCopying

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

  • List of entries to be moved or copied. Each entry is RelocationPath.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<DBFILESRelocationPath *> *_Nonnull entries;

    Swift

    var entries: [DBFILESRelocationPath] { get }
  • If there’s a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict.

    Declaration

    Objective-C

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

    Swift

    var autorename: NSNumber { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEntries:
                                (nonnull NSArray<DBFILESRelocationPath *> *)entries
                                 autorename:(nullable NSNumber *)autorename;

    Swift

    init(entries: [DBFILESRelocationPath], autorename: NSNumber?)

    Parameters

    entries

    List of entries to be moved or copied. Each entry is RelocationPath.

    autorename

    If there’s a conflict with any file, have the Dropbox server try to autorename that file to avoid the conflict.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithEntries:
        (nonnull NSArray<DBFILESRelocationPath *> *)entries;

    Swift

    init(entries: [DBFILESRelocationPath])

    Parameters

    entries

    List of entries to be moved or copied. Each entry is RelocationPath.

    Return Value

    An initialized instance.