다음을 통해 공유


View.AccessibilityDelegate.OnRequestSendAccessibilityEvent Method

Definition

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.

[Android.Runtime.Register("onRequestSendAccessibilityEvent", "(Landroid/view/ViewGroup;Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z", "GetOnRequestSendAccessibilityEvent_Landroid_view_ViewGroup_Landroid_view_View_Landroid_view_accessibility_AccessibilityEvent_Handler")]
public virtual bool OnRequestSendAccessibilityEvent (Android.Views.ViewGroup host, Android.Views.View child, Android.Views.Accessibility.AccessibilityEvent e);
[<Android.Runtime.Register("onRequestSendAccessibilityEvent", "(Landroid/view/ViewGroup;Landroid/view/View;Landroid/view/accessibility/AccessibilityEvent;)Z", "GetOnRequestSendAccessibilityEvent_Landroid_view_ViewGroup_Landroid_view_View_Landroid_view_accessibility_AccessibilityEvent_Handler")>]
abstract member OnRequestSendAccessibilityEvent : Android.Views.ViewGroup * Android.Views.View * Android.Views.Accessibility.AccessibilityEvent -> bool
override this.OnRequestSendAccessibilityEvent : Android.Views.ViewGroup * Android.Views.View * Android.Views.Accessibility.AccessibilityEvent -> bool

Parameters

host
ViewGroup

The View hosting the delegate.

child
View

The child which requests sending the event.

e
AccessibilityEvent

The event to be sent.

Returns

True if the event should be sent

Attributes

Remarks

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.

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

Java documentation for android.view.View.AccessibilityDelegate.onRequestSendAccessibilityEvent(android.view.ViewGroup, android.view.View, android.view.accessibility.AccessibilityEvent).

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

  • <xref:Android.Views.ViewGroup.OnRequestSendAccessibilityEvent(Android.Views.View%2c+Android.Views.Accessibility.AccessibilityEvent)>