AccessibleClickableSpan

Extends the ClickableSpan class to include a dedicated field for the accessibility label. This is useful in cases where we know what the span object will represent and its description is not easily obtainable from its actual contents. For example, the number of likers for a story might want to set the accessibility label to the corresponding plurals resource.

Constructors

Link copied to clipboard
constructor()
constructor(@Nullable accessibilityDescription: String)
constructor(@Nullable accessibilityDescription: String, @Nullable accessibilityRole: String)
constructor(@Nullable accessibilityDescription: String, @Nullable accessibilityRole: String, @Nullable roleDescription: String)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onClick(p: View)
Link copied to clipboard
open fun setAccessibilityDescription(accessibilityDescription: String)
Link copied to clipboard
open fun setAccessibilityRole(accessibilityRole: String)
Link copied to clipboard
open fun setKeyboardFocused(isKeyboardFocused: Boolean)
Link copied to clipboard
open fun setRoleDescription(roleDescription: String)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Link copied to clipboard