-
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
PreviewThumbnailView.OnPreviewChangeListener
This PreviewThumbnailView's listener
-
Method Summary
Modifier and Type Method Description abstract ThumbnailView
getThumbnailView()
Returns the ThumbnailView where the thumbnail images will be drawn into. abstract int
getProgress()
Get the PreviewThumbnailView's current level of progress. abstract int
getMax()
Returns the maximum possible progress for this PreviewThumbnailView abstract int
getThumbOffset()
Returns the offset, in pixels, of the thumb/scrubber. abstract boolean
isShowingPreview()
Returns true if the Preview Thumbnail is currently being shown, or false otherwise abstract boolean
isPreviewEnabled()
Returns true if the Preview Thumbnail is enabled, or false otherwise. abstract void
showPreview()
Shows the Preview Thumbnail View abstract void
hidePreview()
Hides the Preview Thumbnail View abstract void
setPreviewEnabled(boolean previewEnabled)
Enables or disables the PreviewThumbnailView abstract void
setPreviewLoader(@NonNull() PreviewLoader previewLoader)
Sets the PreviewLoader abstract void
attachPreviewFrameLayout(@NonNull() FrameLayout parentFrameLayout, @NonNull() BrightcoveControlBar brightcoveControlBar)
Attaches the this view's ThumbnailView to the parent frame layout. abstract void
addOnPreviewChangeListener(@NonNull() PreviewThumbnailView.OnPreviewChangeListener listener)
Adds a PreviewThumbnailView.OnPreviewChangeListener abstract void
removeOnPreviewChangeListener(@NonNull() PreviewThumbnailView.OnPreviewChangeListener listener)
Removes a PreviewThumbnailView.OnPreviewChangeListener abstract void
reset()
Resets its components to its initial state -
-
Method Detail
-
getThumbnailView
@NonNull() abstract ThumbnailView getThumbnailView()
Returns the ThumbnailView where the thumbnail images will be drawn into.
-
getProgress
abstract int getProgress()
Get the PreviewThumbnailView's current level of progress. Return 0 when thePreviewThumbnailView is in indeterminate mode.
-
getMax
abstract int getMax()
Returns the maximum possible progress for this PreviewThumbnailView
-
getThumbOffset
abstract int getThumbOffset()
Returns the offset, in pixels, of the thumb/scrubber.This value is used to draw the ThumbnailView aligned with the thumb/scrubber.
-
isShowingPreview
abstract boolean isShowingPreview()
Returns true if the Preview Thumbnail is currently being shown, or false otherwise
-
isPreviewEnabled
abstract boolean isPreviewEnabled()
Returns true if the Preview Thumbnail is enabled, or false otherwise.
-
showPreview
abstract void showPreview()
Shows the Preview Thumbnail View
-
hidePreview
abstract void hidePreview()
Hides the Preview Thumbnail View
-
setPreviewEnabled
abstract void setPreviewEnabled(boolean previewEnabled)
Enables or disables the PreviewThumbnailView
- Parameters:
previewEnabled
- true to enable
-
setPreviewLoader
abstract void setPreviewLoader(@NonNull() PreviewLoader previewLoader)
Sets the PreviewLoader
- Parameters:
previewLoader
- the preview thumbnail loader
-
attachPreviewFrameLayout
abstract void attachPreviewFrameLayout(@NonNull() FrameLayout parentFrameLayout, @NonNull() BrightcoveControlBar brightcoveControlBar)
Attaches the this view's ThumbnailView to the parent frame layout.
- Parameters:
parentFrameLayout
- the parent frame layout where the ThumbnailView will be addedbrightcoveControlBar
- the brightcove control bar
-
addOnPreviewChangeListener
abstract void addOnPreviewChangeListener(@NonNull() PreviewThumbnailView.OnPreviewChangeListener listener)
-
removeOnPreviewChangeListener
abstract void removeOnPreviewChangeListener(@NonNull() PreviewThumbnailView.OnPreviewChangeListener listener)
-
reset
abstract void reset()
Resets its components to its initial state
-
-
-
-