Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ViewCompat.setAccessibilityDelegate(itemView, object: AccessibilityDelegateCompat() {
override fun onInitializeAccessibilityNodeInfo(host: View, info: AccessibilityNodeInfoCompat) {
super.onInitializeAccessibilityNodeInfo(host, info)
val clickActionId = AccessibilityNodeInfoCompat.ACTION_CLICK
info.addAction(AccessibilityActionCompat(clickActionId, "play video"))
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.