DBSHARINGSharingFileAccessError
Objective-C
@interface DBSHARINGSharingFileAccessError
    : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGSharingFileAccessError : NSObject, DBSerializable, NSCopying
                The SharingFileAccessError union.
User could not access this file.
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) DBSHARINGSharingFileAccessErrorTag tag;Swift
var tag: DBSHARINGSharingFileAccessErrorTag { get } 
- 
                  
                  
Initializes union class with tag state of “no_permission”.
Description of the “no_permission” tag state: Current user does not have sufficient privileges to perform the desired action.
Declaration
Objective-C
- (nonnull instancetype)initWithNoPermission;Swift
init(noPermission: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “invalid_file”.
Description of the “invalid_file” tag state: File specified was not found.
Declaration
Objective-C
- (nonnull instancetype)initWithInvalidFile;Swift
init(invalidFile: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “is_folder”.
Description of the “is_folder” tag state: A folder can’t be shared this way. Use folder sharing or a shared link instead.
Declaration
Objective-C
- (nonnull instancetype)initWithIsFolder;Swift
init(isFolder: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “inside_public_folder”.
Description of the “inside_public_folder” tag state: A file inside a public folder can’t be shared this way. Use a public link instead.
Declaration
Objective-C
- (nonnull instancetype)initWithInsidePublicFolder;Swift
init(insidePublicFolder: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “inside_osx_package”.
Description of the “inside_osx_package” tag state: A Mac OS X package can’t be shared this way. Use a shared link instead.
Declaration
Objective-C
- (nonnull instancetype)initWithInsideOsxPackage;Swift
init(insideOsxPackage: ())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 “no_permission”.
Declaration
Objective-C
- (BOOL)isNoPermission;Swift
func isNoPermission() -> BoolReturn Value
Whether the union’s current tag state has value “no_permission”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “invalid_file”.
Declaration
Objective-C
- (BOOL)isInvalidFile;Swift
func isInvalidFile() -> BoolReturn Value
Whether the union’s current tag state has value “invalid_file”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “is_folder”.
Declaration
Objective-C
- (BOOL)isIsFolder;Swift
func isIsFolder() -> BoolReturn Value
Whether the union’s current tag state has value “is_folder”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “inside_public_folder”.
Declaration
Objective-C
- (BOOL)isInsidePublicFolder;Swift
func isInsidePublicFolder() -> BoolReturn Value
Whether the union’s current tag state has value “inside_public_folder”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “inside_osx_package”.
Declaration
Objective-C
- (BOOL)isInsideOsxPackage;Swift
func isInsideOsxPackage() -> BoolReturn Value
Whether the union’s current tag state has value “inside_osx_package”.
 - 
                  
                  
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
        DBSHARINGSharingFileAccessError Class Reference