DBFILESMoveBatchArg

Objective-C

@interface DBFILESMoveBatchArg
    : DBFILESRelocationBatchArgBase <DBSerializable, NSCopying>

Swift

class DBFILESMoveBatchArg : DBFILESRelocationBatchArgBase, DBSerializable, NSCopying

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

  • Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies.

    Declaration

    Objective-C

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

    Swift

    var allowOwnershipTransfer: 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
        allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer;

    Swift

    init(entries: [DBFILESRelocationPath], autorename: NSNumber?, allowOwnershipTransfer: 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.

    allowOwnershipTransfer

    Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies.

    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.