DBSHARINGLinkAction
Objective-C
@interface DBSHARINGLinkAction : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGLinkAction : NSObject, DBSerializable, NSCopying
                The LinkAction union.
Actions that can be performed on a link.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
- 
                  
                  
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGLinkActionTag tag;Swift
var tag: DBSHARINGLinkActionTag { get } 
- 
                  
                  
Initializes union class with tag state of “change_access_level”.
Description of the “change_access_level” tag state: Change the access level of the link.
Declaration
Objective-C
- (nonnull instancetype)initWithChangeAccessLevel;Swift
init(changeAccessLevel: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “change_audience”.
Description of the “change_audience” tag state: Change the audience of the link.
Declaration
Objective-C
- (nonnull instancetype)initWithChangeAudience;Swift
init(changeAudience: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “remove_expiry”.
Description of the “remove_expiry” tag state: Remove the expiry date of the link.
Declaration
Objective-C
- (nonnull instancetype)initWithRemoveExpiry;Swift
init(removeExpiry: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “remove_password”.
Description of the “remove_password” tag state: Remove the password of the link.
Declaration
Objective-C
- (nonnull instancetype)initWithRemovePassword;Swift
init(removePassword: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “set_expiry”.
Description of the “set_expiry” tag state: Create or modify the expiry date of the link.
Declaration
Objective-C
- (nonnull instancetype)initWithSetExpiry;Swift
init(setExpiry: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “set_password”.
Description of the “set_password” tag state: Create or modify the password of the link.
Declaration
Objective-C
- (nonnull instancetype)initWithSetPassword;Swift
init(setPassword: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
 
- 
                  
                  
Retrieves whether the union’s current tag state has value “change_access_level”.
Declaration
Objective-C
- (BOOL)isChangeAccessLevel;Swift
func isChangeAccessLevel() -> BoolReturn Value
Whether the union’s current tag state has value “change_access_level”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “change_audience”.
Declaration
Objective-C
- (BOOL)isChangeAudience;Swift
func isChangeAudience() -> BoolReturn Value
Whether the union’s current tag state has value “change_audience”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “remove_expiry”.
Declaration
Objective-C
- (BOOL)isRemoveExpiry;Swift
func isRemoveExpiry() -> BoolReturn Value
Whether the union’s current tag state has value “remove_expiry”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “remove_password”.
Declaration
Objective-C
- (BOOL)isRemovePassword;Swift
func isRemovePassword() -> BoolReturn Value
Whether the union’s current tag state has value “remove_password”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “set_expiry”.
Declaration
Objective-C
- (BOOL)isSetExpiry;Swift
func isSetExpiry() -> BoolReturn Value
Whether the union’s current tag state has value “set_expiry”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “set_password”.
Declaration
Objective-C
- (BOOL)isSetPassword;Swift
func isSetPassword() -> BoolReturn Value
Whether the union’s current tag state has value “set_password”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
 - 
                  
                  
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
 
View on GitHub
        DBSHARINGLinkAction Class Reference