DBSHARINGLinkSettings
Objective-C
@interface DBSHARINGLinkSettings : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGLinkSettings : NSObject, DBSerializable, NSCopying
                The LinkSettings struct.
Settings that apply to a link.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
- 
                  
                  
The access level on the link for this file. Currently, it only accepts ‘viewer’ and ‘viewer_no_comment’.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGAccessLevel *accessLevel;Swift
var accessLevel: DBSHARINGAccessLevel? { get } - 
                  
                  
The type of audience on the link for this file.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGLinkAudience *audience;Swift
var audience: DBSHARINGLinkAudience? { get } - 
                  
                  
An expiry timestamp to set on a link.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGLinkExpiry *expiry;Swift
var expiry: DBSHARINGLinkExpiry? { get } - 
                  
                  
The password for the link.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) DBSHARINGLinkPassword *password;Swift
var password: DBSHARINGLinkPassword? { get } 
- 
                  
                  
Full constructor for the struct (exposes all instance variables).
Declaration
Objective-C
- (nonnull instancetype) initWithAccessLevel:(nullable DBSHARINGAccessLevel *)accessLevel audience:(nullable DBSHARINGLinkAudience *)audience expiry:(nullable DBSHARINGLinkExpiry *)expiry password:(nullable DBSHARINGLinkPassword *)password;Swift
init(accessLevel: DBSHARINGAccessLevel?, audience: DBSHARINGLinkAudience?, expiry: DBSHARINGLinkExpiry?, password: DBSHARINGLinkPassword?)Parameters
accessLevelThe access level on the link for this file. Currently, it only accepts ‘viewer’ and ‘viewer_no_comment’.
audienceThe type of audience on the link for this file.
expiryAn expiry timestamp to set on a link.
passwordThe password for the link.
Return Value
An initialized instance.
 - 
                  
                  
Convenience constructor (exposes only non-nullable instance variables with no default value).
Declaration
Objective-C
- (nonnull instancetype)initDefault;Swift
init(default: ())Return Value
An initialized instance.
 
View on GitHub
        DBSHARINGLinkSettings Class Reference