AccessibilityClickableSpanCompat

ClickableSpan cannot be parceled, but accessibility services need to be able to cause their callback handlers to be called. This class serves as a placeholder for the real spans. Calling onClick on these from an accessibility service will result in onClick being called on the represented span in the app process.

Constructors

Link copied to clipboard
constructor(originalClickableSpanId: Int, @NonNull nodeInfoCompat: AccessibilityNodeInfoCompat, clickableSpanActionId: Int)

Properties

Link copied to clipboard
val SPAN_ID: String = "ACCESSIBILITY_CLICKABLE_SPAN_ID"

Functions

Link copied to clipboard
open fun onClick(@NonNull unused: View)
Perform the click from an accessibility service.