DBFILESSharedLinkFileInfo
Objective-C
@interface DBFILESSharedLinkFileInfo : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESSharedLinkFileInfo : NSObject, DBSerializable, NSCopying
The SharedLinkFileInfo struct.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
The shared link corresponding to either a file or shared link to a folder. If it is for a folder shared link, we use the path param to determine for which file in the folder the view is for.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull url;Swift
var url: String { get } -
The path corresponding to a file in a shared link to a folder. Required for shared links to folders.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *path;Swift
var path: String? { get } -
Password for the shared link. Required for password-protected shared links to files unless it can be read from a cookie.
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 path:(nullable NSString *)path password:(nullable NSString *)password;Swift
init(url: String, path: String?, password: String?)Parameters
urlThe shared link corresponding to either a file or shared link to a folder. If it is for a folder shared link, we use the path param to determine for which file in the folder the view is for.
pathThe path corresponding to a file in a shared link to a folder. Required for shared links to folders.
passwordPassword for the shared link. Required for password-protected shared links to files unless it can be read from a cookie.
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
urlThe shared link corresponding to either a file or shared link to a folder. If it is for a folder shared link, we use the path param to determine for which file in the folder the view is for.
Return Value
An initialized instance.
View on GitHub
DBFILESSharedLinkFileInfo Class Reference