Android.Views.View.OnInitializeAccessibilityEvent Method
Initializes an Android.Views.Accessibility.AccessibilityEvent with information about this View which is the event source.

Syntax

[Android.Runtime.Register("onInitializeAccessibilityEvent", "(Landroid/view/accessibility/AccessibilityEvent;)V", "GetOnInitializeAccessibilityEvent_Landroid_view_accessibility_AccessibilityEvent_Handler")]
public virtual void OnInitializeAccessibilityEvent (Android.Views.Accessibility.AccessibilityEvent e)

See Also

View.SendAccessibilityEvent(Android.Views.Accessibility.EventTypes)
View.DispatchPopulateAccessibilityEvent(Android.Views.Accessibility.AccessibilityEvent)

Parameters

e
The event to initialize.

Remarks

Initializes an Android.Views.Accessibility.AccessibilityEvent with information about this View which is the event source. In other words, the source of an accessibility event is the view whose state change triggered firing the event.

Example: Setting the password property of an event in addition to properties set by the super implementation:

java Example

 public void onInitializeAccessibilityEvent(AccessibilityEvent event) {
     super.onInitializeAccessibilityEvent(event);
     event.setPassword(true);
 }

If an NoType:android/view/View$AccessibilityDelegate;Href=../../../reference/android/view/View.AccessibilityDelegate.html has been specified via calling View.SetAccessibilityDelegate(.AccessibilityDelegate) its NoType:android/view/View$AccessibilityDelegate;Href=../../../reference/android/view/View.AccessibilityDelegate.html#onInitializeAccessibilityEvent(android.view.View, android.view.accessibility.AccessibilityEvent) is responsible for handling this call.

Note: Always call the super implementation before adding information to the event, in case the default implementation has basic information to add.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14