# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# AccessibilityRequestPreparer

`public abstract class AccessibilityRequestPreparer`
`extends Object` ``

java.lang.Object
↳ | android.view.accessibility.AccessibilityRequestPreparer

Object responsible to ensuring that a `View` is prepared to meet a synchronous request for accessibility data.

Because accessibility requests arrive to `View`s synchronously on the UI thread, a View that requires information from other processes can struggle to meet those requests. Registering an instance of this class with `AccessibilityManager` allows a View to be notified when a request is about to be made, and to asynchronously inform the accessibility system when it is ready to meet the request.

Note: This class should only be needed in exceptional situations where a `View` cannot otherwise synchronously meet the request for accessibility data.

## Summary

### Constants
`int` | `REQUEST_TYPE_EXTRA_DATA`

### Public constructors
`AccessibilityRequestPreparer(View view, int requestTypes)`

### Public methods
`View` | `getView()` Get the view this object was created with.
`abstract void` | `onPrepareExtraData(int virtualViewId, String extraDataKey, Bundle args, Message preparationFinishedMessage)` Callback to allow preparation for filling extra data.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### REQUEST_TYPE_EXTRA_DATA

    public static final int REQUEST_TYPE_EXTRA_DATA

Constant Value: 1 (0x00000001)

## Public constructors

### AccessibilityRequestPreparer

    public AccessibilityRequestPreparer (View view,
                    int requestTypes)

Parameters
`view` | `View`: The view whose requests need preparation. It must be attached to a window. This object will retain a weak reference to this view, and will unregister itself from AccessibilityManager if the view is detached from a window. It will not re-register itself.
`requestTypes` | `int`: The types of requests that require preparation. Different types may be ORed together. Value is either `0` or `REQUEST_TYPE_EXTRA_DATA`

Throws
`IllegalStateException` | if the view is not attached to a window.

## Public methods

### getView

    public View getView ()

Get the view this object was created with.

Returns
`View` | The view this object was created with, or `null` if the weak reference held to the view is no longer valid.

### onPrepareExtraData

    public abstract void onPrepareExtraData (int virtualViewId,
                    String extraDataKey,
                    Bundle args,
                    Message preparationFinishedMessage)

Callback to allow preparation for filling extra data. Only called back if REQUEST_TYPE_EXTRA_DATA is requested.

Parameters
`virtualViewId` | `int`: The ID of a virtual child node, if the `View` for this preparer supports virtual descendents, or `AccessibilityNodeProvider#HOST_VIEW_ID` if the request is for the view itself.
`extraDataKey` | `String`: The extra data key for the request
`args` | `Bundle`: The arguments for the request
`preparationFinishedMessage` | `Message`: A message that must be sent to its target when preparations are complete.

See also:

- `View.addExtraDataToAccessibilityNodeInfo(AccessibilityNodeInfo, String, Bundle)`
- `View.AccessibilityDelegate.addExtraDataToAccessibilityNodeInfo(View, AccessibilityNodeInfo, String, Bundle)`
- `AccessibilityNodeProvider.addExtraDataToAccessibilityNodeInfo(int, AccessibilityNodeInfo, String, Bundle)`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*