public interface PreviewThumbnailView
The representation for the Preview Thumbnail View which contains all the components needed for drawing thumbnail images according to the progress changes.
Modifier and Type | Interface and Description |
---|---|
static interface |
PreviewThumbnailView.OnPreviewChangeListener
This
PreviewThumbnailView 's listener |
Modifier and Type | Method and Description |
---|---|
void |
addOnPreviewChangeListener(PreviewThumbnailView.OnPreviewChangeListener listener)
|
void |
attachPreviewFrameLayout(android.widget.FrameLayout parentFrameLayout,
BrightcoveControlBar brightcoveControlBar)
Attaches the this view's
ThumbnailView to the parent frame layout. |
int |
getMax()
Returns the maximum possible progress for this PreviewThumbnailView
|
int |
getProgress()
Get the PreviewThumbnailView's current level of progress.
|
ThumbnailView |
getThumbnailView()
Returns the
ThumbnailView where the thumbnail images will be drawn into. |
int |
getThumbOffset()
Returns the offset, in pixels, of the thumb/scrubber.
|
void |
hidePreview()
Hides the Preview Thumbnail View
|
boolean |
isPreviewEnabled()
Returns true if the Preview Thumbnail is enabled, or false otherwise.
|
boolean |
isShowingPreview()
Returns true if the Preview Thumbnail is currently being shown, or false otherwise
|
void |
removeOnPreviewChangeListener(PreviewThumbnailView.OnPreviewChangeListener listener)
|
void |
reset()
Resets its components to its initial state
|
void |
setPreviewEnabled(boolean previewEnabled)
Enables or disables the
PreviewThumbnailView |
void |
setPreviewLoader(PreviewLoader previewLoader)
Sets the
PreviewLoader |
void |
showPreview()
Shows the Preview Thumbnail View
|
@NonNull ThumbnailView getThumbnailView()
ThumbnailView
where the thumbnail images will be drawn into.int getProgress()
Get the PreviewThumbnailView's current level of progress. Return 0 when the PreviewThumbnailView is in indeterminate mode.
int getMax()
int getThumbOffset()
ThumbnailView
aligned with the thumb/scrubber.boolean isShowingPreview()
boolean isPreviewEnabled()
void showPreview()
void hidePreview()
void setPreviewEnabled(boolean previewEnabled)
PreviewThumbnailView
previewEnabled
- true to enablevoid setPreviewLoader(@NonNull PreviewLoader previewLoader)
PreviewLoader
previewLoader
- the preview thumbnail loaderPreviewLoader
void attachPreviewFrameLayout(@NonNull android.widget.FrameLayout parentFrameLayout, @NonNull BrightcoveControlBar brightcoveControlBar)
ThumbnailView
to the parent frame layout.parentFrameLayout
- the parent frame layout where the ThumbnailView will be addedbrightcoveControlBar
- the brightcove control barvoid addOnPreviewChangeListener(@NonNull PreviewThumbnailView.OnPreviewChangeListener listener)
void removeOnPreviewChangeListener(@NonNull PreviewThumbnailView.OnPreviewChangeListener listener)
void reset()