DBFILESMediaMetadata

Objective-C

@interface DBFILESMediaMetadata : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESMediaMetadata : NSObject, DBSerializable, NSCopying

The MediaMetadata struct.

Metadata 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

  • Dimension of the photo/video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBFILESDimensions *dimensions;

    Swift

    var dimensions: DBFILESDimensions? { get }
  • The GPS coordinate of the photo/video.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) DBFILESGpsCoordinates *location;

    Swift

    var location: DBFILESGpsCoordinates? { get }
  • The timestamp when the photo/video is taken.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSDate *timeTaken;

    Swift

    var timeTaken: Date? { get }

Constructors

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

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithDimensions:(nullable DBFILESDimensions *)dimensions
                  location:(nullable DBFILESGpsCoordinates *)location
                 timeTaken:(nullable NSDate *)timeTaken;

    Swift

    init(dimensions: DBFILESDimensions?, location: DBFILESGpsCoordinates?, timeTaken: Date?)

    Parameters

    dimensions

    Dimension of the photo/video.

    location

    The GPS coordinate of the photo/video.

    timeTaken

    The timestamp when the photo/video is taken.

    Return Value

    An initialized instance.

  • Convenience constructor (exposes only non-nullable instance variables with no default value).

    Declaration

    Objective-C

    - (nonnull instancetype)initDefault;

    Swift

    init(default: ())

    Return Value

    An initialized instance.