Interface PreviewLoader
-
- All Known Implementing Classes:
DefaultPreviewLoader
public interface PreviewLoaderThe component responsible for loadingTimedThumbnailfrom a givenThumbnailDocumentand the playhead position, into theThumbnailView.
-
-
Field Summary
Fields Modifier and Type Field Description static PreviewLoaderEMPTYAn Empty Preview Loader.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidloadPreview(ThumbnailView thumbnailView, long playheadPosition, long duration)Given a playhead position, finds aTimedThumbnailin theThumbnailDocumentset withsetThumbnailDocument(ThumbnailDocument), and loads it into theThumbnailView.voidsetThumbnailDocument(ThumbnailDocument thumbnailDocument)
-
-
-
Field Detail
-
EMPTY
static final PreviewLoader EMPTY
An Empty Preview Loader. None of its methods are implemented.
-
-
Method Detail
-
setThumbnailDocument
void setThumbnailDocument(@NonNull ThumbnailDocument thumbnailDocument)- Parameters:
thumbnailDocument- the Thumbnail document
-
loadPreview
void loadPreview(@NonNull ThumbnailView thumbnailView, long playheadPosition, long duration)Given a playhead position, finds aTimedThumbnailin theThumbnailDocumentset withsetThumbnailDocument(ThumbnailDocument), and loads it into theThumbnailView.- Parameters:
thumbnailView- the view to load the preview thumbnail imageplayheadPosition- the Video's playhead positionduration- the Video's duration
-
-