IAccessibilityEventSource.SendAccessibilityEvent(EventTypes) Method

Definition

Handles the request for sending an AccessibilityEvent given the event type.

[Android.Runtime.Register("sendAccessibilityEvent", "(I)V", "GetSendAccessibilityEvent_IHandler:Android.Views.Accessibility.IAccessibilityEventSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SendAccessibilityEvent (Android.Views.Accessibility.EventTypes eventType);
[<Android.Runtime.Register("sendAccessibilityEvent", "(I)V", "GetSendAccessibilityEvent_IHandler:Android.Views.Accessibility.IAccessibilityEventSourceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SendAccessibilityEvent : Android.Views.Accessibility.EventTypes -> unit

Parameters

eventType
EventTypes

The event type.

Attributes

Remarks

Handles the request for sending an AccessibilityEvent given the event type. The method must first check if accessibility is on via calling AccessibilityManager#isEnabled() AccessibilityManager.isEnabled(), obtain an AccessibilityEvent from the event pool through calling AccessibilityEvent#obtain(int) AccessibilityEvent.obtain(int), populate the event, and send it for dispatch via calling AccessibilityManager#sendAccessibilityEvent(AccessibilityEvent) AccessibilityManager.sendAccessibilityEvent(AccessibilityEvent).

Java documentation for android.view.accessibility.AccessibilityEventSource.sendAccessibilityEvent(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also