Interface LibraryItem
- All Known Implementing Classes:
ImageLibraryItem
,VideoLibraryItem
public interface LibraryItem
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(LibraryItemVisitor visitor) Allows the specified visitor to visit this item.long
getId()
<ConcreteBuilder extends LibraryItem.Builder<ConcreteBuilder>>
LibraryItem.Builder<ConcreteBuilder>
-
Method Details
-
getId
String getId()- Returns:
- The unique identifier for the item.
- See Also:
-
getDateCreated
Date getDateCreated()- Returns:
- The date/time the item was created.
- See Also:
-
getFileSize
long getFileSize()- Returns:
- The file size on disk of the file data in bytes.
- See Also:
-
getLockState
LibraryItemLockState getLockState()- Returns:
- The lock state of the item.
- See Also:
-
getFileDataUri
Uri getFileDataUri()- Returns:
- Uri of the video/image data.
- See Also:
-
getFileType
- Returns:
- The MIME type of file (video/image).
- See Also:
-
getThumbnailDataUri
Uri getThumbnailDataUri()- Returns:
- A Uri of the thumbnail for the video/image.
- See Also:
-
getSizeInPixels
Size getSizeInPixels()- Returns:
- The width and height of the video/image, in pixels.
- See Also:
-
toBuilder
<ConcreteBuilder extends LibraryItem.Builder<ConcreteBuilder>> LibraryItem.Builder<ConcreteBuilder> toBuilder()- Returns:
- A builder instance with the same parameters.
-