DBFILESPhotoMetadata

Objective-C

@interface DBFILESPhotoMetadata
    : DBFILESMediaMetadata <DBSerializable, NSCopying>

Swift

class DBFILESPhotoMetadata : DBFILESMediaMetadata, DBSerializable, NSCopying

The PhotoMetadata struct.

Metadata for a photo.

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

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.