DBFILESThumbnailFormat
Objective-C
@interface DBFILESThumbnailFormat : NSObject <DBSerializable, NSCopying>
Swift
class DBFILESThumbnailFormat : NSObject, DBSerializable, NSCopying
The ThumbnailFormat
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) DBFILESThumbnailFormatTag tag;
Swift
var tag: DBFILESThumbnailFormatTag { get }
-
Initializes union class with tag state of “jpeg”.
Declaration
Objective-C
- (nonnull instancetype)initWithJpeg;
Swift
init(jpeg: ())
Return Value
An initialized instance.
-
Initializes union class with tag state of “png”.
Declaration
Objective-C
- (nonnull instancetype)initWithPng;
Swift
init(png: ())
Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “jpeg”.
Declaration
Objective-C
- (BOOL)isJpeg;
Swift
func isJpeg() -> Bool
Return Value
Whether the union’s current tag state has value “jpeg”.
-
Retrieves whether the union’s current tag state has value “png”.
Declaration
Objective-C
- (BOOL)isPng;
Swift
func isPng() -> Bool
Return Value
Whether the union’s current tag state has value “png”.
-
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.