DBFILESThumbnailMode

Objective-C

@interface DBFILESThumbnailMode : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESThumbnailMode : NSObject, DBSerializable, NSCopying

The ThumbnailMode union.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “strict”.

    Description of the “strict” tag state: Scale down the image to fit within the given size.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStrict;

    Swift

    init(strict: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “bestfit”.

    Description of the “bestfit” tag state: Scale down the image to fit within the given size or its transpose.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBestfit;

    Swift

    init(bestfit: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “fitone_bestfit”.

    Description of the “fitone_bestfit” tag state: Scale down the image to completely cover the given size or its transpose.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFitoneBestfit;

    Swift

    init(fitoneBestfit: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “strict”.

    Declaration

    Objective-C

    - (BOOL)isStrict;

    Swift

    func isStrict() -> Bool

    Return Value

    Whether the union’s current tag state has value “strict”.

  • Retrieves whether the union’s current tag state has value “bestfit”.

    Declaration

    Objective-C

    - (BOOL)isBestfit;

    Swift

    func isBestfit() -> Bool

    Return Value

    Whether the union’s current tag state has value “bestfit”.

  • Retrieves whether the union’s current tag state has value “fitone_bestfit”.

    Declaration

    Objective-C

    - (BOOL)isFitoneBestfit;

    Swift

    func isFitoneBestfit() -> Bool

    Return Value

    Whether the union’s current tag state has value “fitone_bestfit”.

  • 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.