DBSHARINGPathLinkMetadata

Objective-C

@interface DBSHARINGPathLinkMetadata
    : DBSHARINGLinkMetadata <DBSerializable, NSCopying>

Swift

class DBSHARINGPathLinkMetadata : DBSHARINGLinkMetadata, DBSerializable, NSCopying

The PathLinkMetadata struct.

Metadata for a path-based shared link.

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 user’s Dropbox.

    Declaration

    Objective-C

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

    Swift

    var path: String { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSString *)url
                             visibility:(nonnull DBSHARINGVisibility *)visibility
                                   path:(nonnull NSString *)path
                                expires:(nullable NSDate *)expires;

    Swift

    init(url: String, visibility: DBSHARINGVisibility, path: String, expires: Date?)

    Parameters

    url

    URL of the shared link.

    visibility

    Who can access the link.

    path

    Path in user’s Dropbox.

    expires

    Expiration time, if set. By default the link won’t expire.

    Return Value

    An initialized instance.

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

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSString *)url
                             visibility:(nonnull DBSHARINGVisibility *)visibility
                                   path:(nonnull NSString *)path;

    Swift

    init(url: String, visibility: DBSHARINGVisibility, path: String)

    Parameters

    url

    URL of the shared link.

    visibility

    Who can access the link.

    path

    Path in user’s Dropbox.

    Return Value

    An initialized instance.