DBFILESSharedLink

@interface DBFILESSharedLink : NSObject <DBSerializable, NSCopying>

The SharedLink struct.

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

  • url

    Shared link url.

    Declaration

    Objective-C

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

    Swift

    var url: String { get }
  • Password for the shared link.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *password;

    Swift

    var password: String? { get }
  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUrl:(nonnull NSString *)url
                               password:(nullable NSString *)password;

    Swift

    init(url: String, password: String?)

    Parameters

    url

    Shared link url.

    password

    Password for the shared link.

    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;

    Swift

    init(url: String)

    Parameters

    url

    Shared link url.

    Return Value

    An initialized instance.