LinkMovementMethodCompat


class LinkMovementMethodCompat : LinkMovementMethod


Backwards compatible version of LinkMovementMethod which fixes the issue that links can be triggered for touches outside of line bounds before Android V.

Summary

Public functions

java-static LinkMovementMethodCompat

Retrieves the singleton instance of LinkMovementMethodCompat.

Boolean
onTouchEvent(widget: TextView?, buffer: Spannable?, event: MotionEvent?)

Inherited functions

From android.text.method.BaseMovementMethod
Int
Boolean
nextParagraph(widget: TextView!, buffer: Spannable!)
Boolean
onGenericMotionEvent(widget: TextView!, text: Spannable!, event: MotionEvent!)
Boolean
onKeyDown(widget: TextView!, text: Spannable!, keyCode: Int, event: KeyEvent!)
Boolean
onKeyOther(widget: TextView!, text: Spannable!, event: KeyEvent!)
Boolean
onKeyUp(widget: TextView!, text: Spannable!, keyCode: Int, event: KeyEvent!)
Boolean
onTrackballEvent(widget: TextView!, text: Spannable!, event: MotionEvent!)
Boolean
previousParagraph(widget: TextView!, buffer: Spannable!)
From android.text.method.LinkMovementMethod
Boolean
Boolean
down(widget: TextView!, buffer: Spannable!)
java-static MovementMethod!
Boolean
handleMovementKey(
    widget: TextView!,
    buffer: Spannable!,
    keyCode: Int,
    movementMetaState: Int,
    event: KeyEvent!
)
Unit
initialize(widget: TextView!, text: Spannable!)
Boolean
left(widget: TextView!, buffer: Spannable!)
Unit
onTakeFocus(view: TextView!, text: Spannable!, dir: Int)
Boolean
right(widget: TextView!, buffer: Spannable!)
Boolean
up(widget: TextView!, buffer: Spannable!)
From android.text.method.ScrollingMovementMethod
Boolean
bottom(widget: TextView!, buffer: Spannable!)
Boolean
end(widget: TextView!, buffer: Spannable!)
Boolean
home(widget: TextView!, buffer: Spannable!)
Boolean
lineEnd(widget: TextView!, buffer: Spannable!)
Boolean
lineStart(widget: TextView!, buffer: Spannable!)
Boolean
pageDown(widget: TextView!, buffer: Spannable!)
Boolean
pageUp(widget: TextView!, buffer: Spannable!)
Boolean
top(widget: TextView!, buffer: Spannable!)

Public functions

getInstance

Added in 1.11.0
java-static fun getInstance(): LinkMovementMethodCompat

Retrieves the singleton instance of LinkMovementMethodCompat.

Returns
LinkMovementMethodCompat

the singleton instance of LinkMovementMethodCompat

onTouchEvent

fun onTouchEvent(widget: TextView?, buffer: Spannable?, event: MotionEvent?): Boolean