DBFILESSharingInfo

Objective-C

@interface DBFILESSharingInfo : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESSharingInfo : NSObject, DBSerializable, NSCopying

The SharingInfo struct.

Sharing info for a file or folder.

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

Instance fields

  • True if the file or folder is inside a read-only shared folder.

    Declaration

    Objective-C

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

    Swift

    var readOnly: NSNumber { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithReadOnly:(nonnull NSNumber *)readOnly;

    Swift

    init(readOnly: NSNumber)

    Parameters

    readOnly

    True if the file or folder is inside a read-only shared folder.

    Return Value

    An initialized instance.