public class MediaMetadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MediaMetadata.Builder
Builder for
MediaMetadata . |
Modifier and Type | Field and Description |
---|---|
protected Dimensions |
dimensions |
protected GpsCoordinates |
location |
protected Date |
timeTaken |
Constructor and Description |
---|
MediaMetadata()
Metadata for a photo or video.
|
MediaMetadata(Dimensions dimensions,
GpsCoordinates location,
Date timeTaken)
Metadata for a photo or video.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Dimensions |
getDimensions()
Dimension of the photo/video.
|
GpsCoordinates |
getLocation()
The GPS coordinate of the photo/video.
|
Date |
getTimeTaken()
The timestamp when the photo/video is taken.
|
int |
hashCode() |
static MediaMetadata.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final Dimensions dimensions
protected final GpsCoordinates location
protected final Date timeTaken
public MediaMetadata(Dimensions dimensions, GpsCoordinates location, Date timeTaken)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
dimensions
- Dimension of the photo/video.location
- The GPS coordinate of the photo/video.timeTaken
- The timestamp when the photo/video is taken.public MediaMetadata()
The default values for unset fields will be used.
public Dimensions getDimensions()
null
if not present.public GpsCoordinates getLocation()
null
if not present.public Date getTimeTaken()
null
if not present.public static MediaMetadata.Builder newBuilder()
public String toStringMultiline()
The returned String may contain newlines.