AccessibilityClickableSpanCompat

Added in 1.1.0

public final class AccessibilityClickableSpanCompat extends ClickableSpan


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.

Summary

Public methods

void
onClick(@NonNull View unused)

Perform the click from an accessibility service.

Public methods

onClick

Added in 1.1.0
public void onClick(@NonNull View unused)

Perform the click from an accessibility service.

Parameters
@NonNull View unused

This argument is required by the superclass but is unused. The real view will be determined by the AccessibilityNodeInfo.