DBSHARINGPendingUploadMode
Objective-C
@interface DBSHARINGPendingUploadMode : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGPendingUploadMode : NSObject, DBSerializable, NSCopying
The PendingUploadMode
union.
Flag to indicate pending upload default (for linking to not-yet-existing paths).
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) DBSHARINGPendingUploadModeTag tag;
Swift
var tag: DBSHARINGPendingUploadModeTag { get }
-
Initializes union class with tag state of “file”.
Description of the “file” tag state: Assume pending uploads are files.
Declaration
Objective-C
- (nonnull instancetype)initWithFile;
Swift
init(file: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “folder”.
Description of the “folder” tag state: Assume pending uploads are folders.
Declaration
Objective-C
- (nonnull instancetype)initWithFolder;
Swift
init(folder: ())
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “file”.
Declaration
Objective-C
- (BOOL)isFile;
Swift
func isFile() -> Bool
Return Value
Whether the union’s current tag state has value “file”.
-
Retrieves whether the union’s current tag state has value “folder”.
Declaration
Objective-C
- (BOOL)isFolder;
Swift
func isFolder() -> Bool
Return Value
Whether the union’s current tag state has value “folder”.
-
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.