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