DBFILESSharedLink
Objective-C
@interface DBFILESSharedLink : NSObject <DBSerializable, NSCopying>
Swift
class 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.
-
Shared link url.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull url;
Swift
var url: String { get }
-
Password for the shared link.
Declaration
Objective-C
@property (nonatomic, copy, readonly, 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.