Udostępnij za pośrednictwem


View.DispatchNestedPrePerformAccessibilityAction(Action, Bundle) Method

Definition

Report an accessibility action to this view's parents for delegated processing.

[Android.Runtime.Register("dispatchNestedPrePerformAccessibilityAction", "(ILandroid/os/Bundle;)Z", "GetDispatchNestedPrePerformAccessibilityAction_ILandroid_os_Bundle_Handler", ApiSince=22)]
public virtual bool DispatchNestedPrePerformAccessibilityAction (Android.Views.Accessibility.Action action, Android.OS.Bundle? arguments);
[<Android.Runtime.Register("dispatchNestedPrePerformAccessibilityAction", "(ILandroid/os/Bundle;)Z", "GetDispatchNestedPrePerformAccessibilityAction_ILandroid_os_Bundle_Handler", ApiSince=22)>]
abstract member DispatchNestedPrePerformAccessibilityAction : Android.Views.Accessibility.Action * Android.OS.Bundle -> bool
override this.DispatchNestedPrePerformAccessibilityAction : Android.Views.Accessibility.Action * Android.OS.Bundle -> bool

Parameters

action
Action

Accessibility action to delegate

arguments
Bundle

Optional action arguments

Returns

true if the action was consumed by a parent

Attributes

Remarks

Report an accessibility action to this view's parents for delegated processing.

Implementations of #performAccessibilityAction(int, Bundle) may internally call this method to delegate an accessibility action to a supporting parent. If the parent returns true from its ViewParent#onNestedPrePerformAccessibilityAction(View, int, android.os.Bundle) method this method will return true to signify that the action was consumed.

This method is useful for implementing nested scrolling child views. If #isNestedScrollingEnabled() returns true and the action is a scrolling action a custom view implementation may invoke this method to allow a parent to consume the scroll first. If this method returns true the custom view should skip its own scrolling behavior.

Java documentation for android.view.View.dispatchNestedPrePerformAccessibilityAction(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