DBFILESFileCategory
Objective-C
@interface DBFILESFileCategory : NSObject <DBSerializable, NSCopying>
                Swift
class DBFILESFileCategory : NSObject, DBSerializable, NSCopying
                The FileCategory 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) DBFILESFileCategoryTag tag;Swift
var tag: DBFILESFileCategoryTag { get } 
- 
                  
                  
Initializes union class with tag state of “image”.
Description of the “image” tag state: jpg, png, gif, and more.
Declaration
Objective-C
- (nonnull instancetype)initWithImage;Swift
init(image: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “document”.
Description of the “document” tag state: doc, docx, txt, and more.
Declaration
Objective-C
- (nonnull instancetype)initWithDocument;Swift
init(document: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “pdf”.
Description of the “pdf” tag state: pdf.
Declaration
Objective-C
- (nonnull instancetype)initWithPdf;Swift
init(pdf: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “spreadsheet”.
Description of the “spreadsheet” tag state: xlsx, xls, csv, and more.
Declaration
Objective-C
- (nonnull instancetype)initWithSpreadsheet;Swift
init(spreadsheet: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “presentation”.
Description of the “presentation” tag state: ppt, pptx, key, and more.
Declaration
Objective-C
- (nonnull instancetype)initWithPresentation;Swift
init(presentation: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “audio”.
Description of the “audio” tag state: mp3, wav, mid, and more.
Declaration
Objective-C
- (nonnull instancetype)initWithAudio;Swift
init(audio: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “video”.
Description of the “video” tag state: mov, wmv, mp4, and more.
Declaration
Objective-C
- (nonnull instancetype)initWithVideo;Swift
init(video: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “folder”.
Description of the “folder” tag state: dropbox folder.
Declaration
Objective-C
- (nonnull instancetype)initWithFolder;Swift
init(folder: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “paper”.
Description of the “paper” tag state: dropbox paper doc.
Declaration
Objective-C
- (nonnull instancetype)initWithPaper;Swift
init(paper: ())Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “others”.
Description of the “others” tag state: any file not in one of the categories above.
Declaration
Objective-C
- (nonnull instancetype)initWithOthers;Swift
init(others: ())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 “image”.
Declaration
Objective-C
- (BOOL)isImage;Swift
func isImage() -> BoolReturn Value
Whether the union’s current tag state has value “image”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “document”.
Declaration
Objective-C
- (BOOL)isDocument;Swift
func isDocument() -> BoolReturn Value
Whether the union’s current tag state has value “document”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “pdf”.
Declaration
Objective-C
- (BOOL)isPdf;Swift
func isPdf() -> BoolReturn Value
Whether the union’s current tag state has value “pdf”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “spreadsheet”.
Declaration
Objective-C
- (BOOL)isSpreadsheet;Swift
func isSpreadsheet() -> BoolReturn Value
Whether the union’s current tag state has value “spreadsheet”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “presentation”.
Declaration
Objective-C
- (BOOL)isPresentation;Swift
func isPresentation() -> BoolReturn Value
Whether the union’s current tag state has value “presentation”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “audio”.
Declaration
Objective-C
- (BOOL)isAudio;Swift
func isAudio() -> BoolReturn Value
Whether the union’s current tag state has value “audio”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “video”.
Declaration
Objective-C
- (BOOL)isVideo;Swift
func isVideo() -> BoolReturn Value
Whether the union’s current tag state has value “video”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “folder”.
Declaration
Objective-C
- (BOOL)isFolder;Swift
func isFolder() -> BoolReturn Value
Whether the union’s current tag state has value “folder”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “paper”.
Declaration
Objective-C
- (BOOL)isPaper;Swift
func isPaper() -> BoolReturn Value
Whether the union’s current tag state has value “paper”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “others”.
Declaration
Objective-C
- (BOOL)isOthers;Swift
func isOthers() -> BoolReturn Value
Whether the union’s current tag state has value “others”.
 - 
                  
                  
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
        DBFILESFileCategory Class Reference