DBSHARINGRevokeSharedLinkError
Objective-C
@interface DBSHARINGRevokeSharedLinkError : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGRevokeSharedLinkError : NSObject, DBSerializable, NSCopying
The RevokeSharedLinkError union.
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) DBSHARINGRevokeSharedLinkErrorTag tag;Swift
var tag: DBSHARINGRevokeSharedLinkErrorTag { get }
-
Initializes union class with tag state of “shared_link_not_found”.
Description of the “shared_link_not_found” tag state: The shared link wasn’t found.
Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkNotFound;Swift
init(sharedLinkNotFound: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “shared_link_access_denied”.
Description of the “shared_link_access_denied” tag state: The caller is not allowed to access this shared link.
Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkAccessDenied;Swift
init(sharedLinkAccessDenied: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “unsupported_link_type”.
Description of the “unsupported_link_type” tag state: This type of link is not supported; use
filesinstead.Declaration
Objective-C
- (nonnull instancetype)initWithUnsupportedLinkType;Swift
init(unsupportedLinkType: ())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.
-
Initializes union class with tag state of “shared_link_malformed”.
Description of the “shared_link_malformed” tag state: Shared link is malformed.
Declaration
Objective-C
- (nonnull instancetype)initWithSharedLinkMalformed;Swift
init(sharedLinkMalformed: ())Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “shared_link_not_found”.
Declaration
Objective-C
- (BOOL)isSharedLinkNotFound;Swift
func isSharedLinkNotFound() -> BoolReturn Value
Whether the union’s current tag state has value “shared_link_not_found”.
-
Retrieves whether the union’s current tag state has value “shared_link_access_denied”.
Declaration
Objective-C
- (BOOL)isSharedLinkAccessDenied;Swift
func isSharedLinkAccessDenied() -> BoolReturn Value
Whether the union’s current tag state has value “shared_link_access_denied”.
-
Retrieves whether the union’s current tag state has value “unsupported_link_type”.
Declaration
Objective-C
- (BOOL)isUnsupportedLinkType;Swift
func isUnsupportedLinkType() -> BoolReturn Value
Whether the union’s current tag state has value “unsupported_link_type”.
-
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 whether the union’s current tag state has value “shared_link_malformed”.
Declaration
Objective-C
- (BOOL)isSharedLinkMalformed;Swift
func isSharedLinkMalformed() -> BoolReturn Value
Whether the union’s current tag state has value “shared_link_malformed”.
-
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
DBSHARINGRevokeSharedLinkError Class Reference