DefaultScrollHandle

class DefaultScrollHandle(context: Context, inverted: Boolean = false) : RelativeLayout, ScrollHandle

Default implementation of the {@link ScrollHandle} interface that provides a visual indicator for scrolling within the PDF view.

Parameters

context

The context to use for creating the scroll handle.

inverted

Whether the scroll handle should be positioned inverted.

Constructors

Link copied to clipboard
constructor(context: Context, inverted: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val shown: Boolean

Get handle visibility.

Functions

Link copied to clipboard
open override fun destroyLayout()

Method called by PDFView when the handle should be removed from layout. Do not call this method manually.

Link copied to clipboard
open override fun hide()

Hide the handle immediately.

Link copied to clipboard
open override fun hideDelayed()

Hide the handle after some time (defined by the implementation).

Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
open override fun setPageNum(pageNum: Int)

Set the page number displayed on the handle.

Link copied to clipboard
open override fun setScroll(position: Float)

Used to move the handle, called internally by PDFView.

Link copied to clipboard
fun setTextColor(color: Int)
Link copied to clipboard
fun setTextSize(size: Float)
Link copied to clipboard
open override fun setupLayout(pdfView: PDFView?)

Method called by PDFView after setting the scroll handle. Do not call this method manually. For usage sample see DefaultScrollHandle.

Link copied to clipboard
open override fun show()

Show the handle.