ClickableSpanListener

A listener that reacts to click and long click events on a clickable span. A listener such as this should be used when the click/long click action needs to access heavyweight objects such as fragments or activities. Using such objects within the spannable can cause memory leaks as spannables are cached in sCached which is static.

Functions

Link copied to clipboard
abstract fun onClick(span: ClickableSpan, view: View): Boolean
Link copied to clipboard
abstract fun onLongClick(span: LongClickableSpan, view: View): Boolean