DBFILESDimensions

Objective-C

@interface DBFILESDimensions : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESDimensions : NSObject, DBSerializable, NSCopying

The Dimensions struct.

Dimensions for a photo or video.

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

Instance fields

  • Height of the photo/video.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull height;

    Swift

    var height: NSNumber { get }
  • Width of the photo/video.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSNumber *_Nonnull width;

    Swift

    var width: NSNumber { get }

Constructors

  • Full constructor for the struct (exposes all instance variables).

    Declaration

    Objective-C

    - (nonnull instancetype)initWithHeight:(nonnull NSNumber *)height
                                     width:(nonnull NSNumber *)width;

    Swift

    init(height: NSNumber, width: NSNumber)

    Parameters

    height

    Height of the photo/video.

    width

    Width of the photo/video.

    Return Value

    An initialized instance.