Class VideoLibraryItem
java.lang.Object
com.navmii.android.dashcamsdk.library.VideoLibraryItem
- All Implemented Interfaces:
LibraryItem
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(LibraryItemVisitor visitor) Allows the specified visitor to visit this item.static VideoLibraryItem.Builder
builder()
abstract Date
abstract long
abstract Uri
abstract long
abstract String
abstract String
getId()
abstract LibraryItemLockState
abstract Uri
boolean
isLocked()
abstract VideoLibraryItem.Builder
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.navmii.android.dashcamsdk.library.LibraryItem
getSizeInPixels
-
Constructor Details
-
VideoLibraryItem
public VideoLibraryItem()
-
-
Method Details
-
builder
-
toBuilder
- Specified by:
toBuilder
in interfaceLibraryItem
- Returns:
- A builder instance with the same parameters.
-
getId
- Specified by:
getId
in interfaceLibraryItem
- Returns:
- The unique identifier for the item.
- See Also:
-
getDateCreated
- Specified by:
getDateCreated
in interfaceLibraryItem
- Returns:
- The date/time the item was created.
- See Also:
-
getDateEnded
- Returns:
- The date/time the video stopped.
-
getFileSize
public abstract long getFileSize()- Specified by:
getFileSize
in interfaceLibraryItem
- Returns:
- The file size on disk of the file data in bytes.
- See Also:
-
isLocked
public boolean isLocked() -
getLockState
- Specified by:
getLockState
in interfaceLibraryItem
- Returns:
- The lock state of the item.
- See Also:
-
getFileDataUri
- Specified by:
getFileDataUri
in interfaceLibraryItem
- Returns:
- Uri of the video/image data.
- See Also:
-
getFileType
- Specified by:
getFileType
in interfaceLibraryItem
- Returns:
- The MIME type of file (video/image).
- See Also:
-
getThumbnailDataUri
- Specified by:
getThumbnailDataUri
in interfaceLibraryItem
- Returns:
- A Uri of the thumbnail for the video/image.
- See Also:
-
getDuration
public abstract long getDuration()- Returns:
- The duration of the video in milliseconds.
- See Also:
-