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.Builderdimensions - Dimension of the photo/video.public PhotoMetadata.Builder withLocation(GpsCoordinates location)
withLocation in class MediaMetadata.Builderlocation - The GPS coordinate of the photo/video.public PhotoMetadata.Builder withTimeTaken(java.util.Date timeTaken)
withTimeTaken in class MediaMetadata.BuildertimeTaken - The timestamp when the photo/video is taken.public PhotoMetadata build()
PhotoMetadata configured with this
builder's valuesbuild in class MediaMetadata.BuilderPhotoMetadata