Class VideoLibraryItem
- java.lang.Object
-
- com.navmii.android.dashcamsdk.library.VideoLibraryItem
-
- All Implemented Interfaces:
LibraryItem
public abstract class VideoLibraryItem extends java.lang.Object implements LibraryItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVideoLibraryItem.Builder
-
Constructor Summary
Constructors Constructor Description VideoLibraryItem()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaccept(LibraryItemVisitor visitor)Allows the specified visitor to visit this item.static VideoLibraryItem.Builderbuilder()abstract java.util.DategetDateCreated()java.util.DategetDateEnded()abstract longgetDuration()abstract android.net.UrigetFileDataUri()abstract longgetFileSize()abstract java.lang.StringgetFileType()abstract java.lang.StringgetId()abstract LibraryItemLockStategetLockState()abstract android.net.UrigetThumbnailDataUri()booleanisLocked()abstract VideoLibraryItem.BuildertoBuilder()-
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
-
-
-
-
Method Detail
-
builder
public static VideoLibraryItem.Builder builder()
-
toBuilder
public abstract VideoLibraryItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceLibraryItem- Returns:
- A builder instance with the same parameters.
-
getId
public abstract java.lang.String getId()
- Specified by:
getIdin interfaceLibraryItem- Returns:
- The unique identifier for the item.
- See Also:
LibraryItem.Builder.setId(String)
-
getDateCreated
public abstract java.util.Date getDateCreated()
- Specified by:
getDateCreatedin interfaceLibraryItem- Returns:
- The date/time the item was created.
- See Also:
LibraryItem.Builder.setDateCreated(Date)
-
getDateEnded
public java.util.Date getDateEnded()
- Returns:
- The date/time the video stopped.
-
getFileSize
public abstract long getFileSize()
- Specified by:
getFileSizein interfaceLibraryItem- Returns:
- The file size on disk of the file data in bytes.
- See Also:
LibraryItem.Builder.setFileSize(long)
-
isLocked
public boolean isLocked()
-
getLockState
public abstract LibraryItemLockState getLockState()
- Specified by:
getLockStatein interfaceLibraryItem- Returns:
- The lock state of the item.
- See Also:
LibraryItem.Builder.setLockState(LibraryItemLockState)
-
getFileDataUri
public abstract android.net.Uri getFileDataUri()
- Specified by:
getFileDataUriin interfaceLibraryItem- Returns:
- Uri of the video/image data.
- See Also:
LibraryItem.Builder.setFileDataUri(Uri)
-
getFileType
@Nullable public abstract java.lang.String getFileType()
- Specified by:
getFileTypein interfaceLibraryItem- Returns:
- The MIME type of file (video/image).
- See Also:
LibraryItem.Builder.setFileType(String)
-
getThumbnailDataUri
@Nullable public abstract android.net.Uri getThumbnailDataUri()
- Specified by:
getThumbnailDataUriin interfaceLibraryItem- Returns:
- A Uri of the thumbnail for the video/image.
- See Also:
LibraryItem.Builder.setThumbnailDataUri(Uri)
-
accept
public void accept(LibraryItemVisitor visitor)
Description copied from interface:LibraryItemAllows the specified visitor to visit this item.- Specified by:
acceptin interfaceLibraryItem- Parameters:
visitor- The visitor.
-
getDuration
public abstract long getDuration()
- Returns:
- The duration of the video in milliseconds.
- See Also:
VideoLibraryItem.Builder.setDuration(long)
-
-