public static class MediaMetadata.Builder extends Object
MediaMetadata
.Modifier and Type | Field and Description |
---|---|
protected Dimensions |
dimensions |
protected GpsCoordinates |
location |
protected Date |
timeTaken |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
MediaMetadata |
build()
Builds an instance of
MediaMetadata configured with this
builder's values |
MediaMetadata.Builder |
withDimensions(Dimensions dimensions)
Set value for optional field.
|
MediaMetadata.Builder |
withLocation(GpsCoordinates location)
Set value for optional field.
|
MediaMetadata.Builder |
withTimeTaken(Date timeTaken)
Set value for optional field.
|
protected Dimensions dimensions
protected GpsCoordinates location
protected Date timeTaken
public MediaMetadata.Builder withDimensions(Dimensions dimensions)
dimensions
- Dimension of the photo/video.public MediaMetadata.Builder withLocation(GpsCoordinates location)
location
- The GPS coordinate of the photo/video.public MediaMetadata.Builder withTimeTaken(Date timeTaken)
timeTaken
- The timestamp when the photo/video is taken.public MediaMetadata build()
MediaMetadata
configured with this
builder's valuesMediaMetadata