Package com.dropbox.core.v2.files
Class VideoMetadata.Builder
java.lang.Object
com.dropbox.core.v2.files.MediaMetadata.Builder
com.dropbox.core.v2.files.VideoMetadata.Builder
- Enclosing class:
VideoMetadata
Builder for
VideoMetadata.-
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.files.MediaMetadata.Builder
dimensions, location, timeTaken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofVideoMetadataconfigured with this builder's valueswithDimensions(Dimensions dimensions) Set value for optional field.withDuration(Long duration) Set value for optional field.withLocation(GpsCoordinates location) Set value for optional field.withTimeTaken(Date timeTaken) Set value for optional field.
-
Field Details
-
duration
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withDuration
Set value for optional field.- Parameters:
duration- The duration of the video in milliseconds.- Returns:
- this builder
-
withDimensions
Set value for optional field.- Overrides:
withDimensionsin classMediaMetadata.Builder- Parameters:
dimensions- Dimension of the photo/video.- Returns:
- this builder
-
withLocation
Set value for optional field.- Overrides:
withLocationin classMediaMetadata.Builder- Parameters:
location- The GPS coordinate of the photo/video.- Returns:
- this builder
-
withTimeTaken
Set value for optional field.- Overrides:
withTimeTakenin classMediaMetadata.Builder- Parameters:
timeTaken- The timestamp when the photo/video is taken.- Returns:
- this builder
-
build
Builds an instance ofVideoMetadataconfigured with this builder's values- Overrides:
buildin classMediaMetadata.Builder- Returns:
- new instance of
VideoMetadata
-