DBSHARINGSharedLinkError
Objective-C
@interface DBSHARINGSharedLinkError : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGSharedLinkError : NSObject, DBSerializable, NSCopying
The SharedLinkError
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) DBSHARINGSharedLinkErrorTag tag;
Swift
var tag: DBSHARINGSharedLinkErrorTag { 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
files
instead.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.
-
Retrieves whether the union’s current tag state has value “shared_link_not_found”.
Declaration
Objective-C
- (BOOL)isSharedLinkNotFound;
Swift
func isSharedLinkNotFound() -> Bool
Return 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() -> Bool
Return 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() -> Bool
Return 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() -> Bool
Return 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() -> String
Return Value
A human-readable string representing the union’s current tag state.