Class DefaultThumbnailView

    • Constructor Detail

      • DefaultThumbnailView

        public DefaultThumbnailView​(Context context)
      • DefaultThumbnailView

        public DefaultThumbnailView​(Context context,
                                    AttributeSet attrs,
                                    int defStyleAttr)
    • Method Detail

      • setBorderPaint

        public void setBorderPaint​(@Nullable
                                   Paint borderPaint)
        Sets the Paint to use for rendering the Thumbnails. If null, the border will not be rendered.
        Parameters:
        borderPaint - the Paint to use
      • setThumbnailProvider

        public void setThumbnailProvider​(@Nullable
                                         ThumbnailProvider thumbnailProvider)
      • show

        public void show​(long positionUs,
                         DefaultThumbnailView.Callback sizeCallback)
        Render the current thumbnail for the given timestamp in microseconds
        Parameters:
        positionUs - The position to render a thumbnail for in microseconds
        sizeCallback - The callback that will be used to query the target size and location
      • hide

        public void hide()
        Hide the thumbnails
      • clear

        public void clear()
        Clear the currently displayed Thumbnail, if any