Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

AccessibilityDelegateCompat

open class AccessibilityDelegateCompat
kotlin.Any
   ↳ androidx.core.view.AccessibilityDelegateCompat

Helper for accessing AccessibilityDelegate.

Note: On platform versions prior to API 23, delegate methods on views in the android.widget.* package are called before host methods. This prevents certain properties such as class name from being modified by overriding AccessibilityDelegateCompat#onInitializeAccessibilityNodeInfo(View, AccessibilityNodeInfoCompat), as any changes will be overwritten by the host class.

Starting in API 23, delegate methods are called after host methods, which all properties to be modified without being overwritten by the host class.

Summary

Public constructors

Creates a new instance.

Public methods
open Boolean

Dispatches an AccessibilityEvent to the host View first and then to its children for adding their text content to the event.

open AccessibilityNodeProviderCompat!

Gets the provider for managing a virtual view hierarchy rooted at this View and reported to android.accessibilityservice.AccessibilityServices that explore the window content.

open Unit

Initializes an AccessibilityEvent with information about the the host View which is the event source.

open Unit

Initializes an AccessibilityNodeInfoCompat with information about the host view.

open Unit

Gives a chance to the host View to populate the accessibility event with its text content.

open Boolean

Called when a child of the host View has requested sending an AccessibilityEvent and gives an opportunity to the parent (the host) to augment the event.

open Boolean
performAccessibilityAction(host: View!, action: Int, args: Bundle!)

Performs the specified accessibility action on the view.

open Unit
sendAccessibilityEvent(host: View!, eventType: Int)

Sends an accessibility event of the given type.

open Unit

Sends an accessibility event.

Public constructors

<init>

AccessibilityDelegateCompat()

Creates a new instance.

Public methods

dispatchPopulateAccessibilityEvent

open fun dispatchPopulateAccessibilityEvent(
    host: View!,
    event: AccessibilityEvent!
): Boolean

Dispatches an AccessibilityEvent to the host View first and then to its children for adding their text content to the event.

The default implementation behaves as View#dispatchPopulateAccessibilityEvent(AccessibilityEvent) for the case of no accessibility delegate been set.

Parameters
host View!: The View hosting the delegate.
event AccessibilityEvent!: The event.
Return
Boolean True if the event population was completed.

See Also