次の方法で共有


IViewParent.OnNestedPrePerformAccessibilityAction Method

Definition

React to an accessibility action delegated by a target descendant view before the target processes it.

[Android.Runtime.Register("onNestedPrePerformAccessibilityAction", "(Landroid/view/View;ILandroid/os/Bundle;)Z", "GetOnNestedPrePerformAccessibilityAction_Landroid_view_View_ILandroid_os_Bundle_Handler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=22)]
public bool OnNestedPrePerformAccessibilityAction (Android.Views.View target, Android.Views.Accessibility.Action action, Android.OS.Bundle? arguments);
[<Android.Runtime.Register("onNestedPrePerformAccessibilityAction", "(Landroid/view/View;ILandroid/os/Bundle;)Z", "GetOnNestedPrePerformAccessibilityAction_Landroid_view_View_ILandroid_os_Bundle_Handler:Android.Views.IViewParentInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=22)>]
abstract member OnNestedPrePerformAccessibilityAction : Android.Views.View * Android.Views.Accessibility.Action * Android.OS.Bundle -> bool

Parameters

target
View

The target view dispatching this action

action
Action

Action being performed; see android.view.accessibility.AccessibilityNodeInfo

arguments
Bundle

Optional action arguments

Returns

true if the action was consumed by this ViewParent

Attributes

Remarks

React to an accessibility action delegated by a target descendant view before the target processes it.

This method may be called by a target descendant view if the target wishes to give a view in its parent chain a chance to react to the event before normal processing occurs. Most commonly this will be a scroll event such as android.view.accessibility.AccessibilityNodeInfo#ACTION_SCROLL_FORWARD. A ViewParent that supports acting as a nested scrolling parent should override this method and act accordingly to implement scrolling via accesibility systems.

Java documentation for android.view.ViewParent.onNestedPrePerformAccessibilityAction(android.view.View, int, android.os.Bundle).

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