18bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov/*
28bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * Copyright (C) 2011 The Android Open Source Project
38bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov *
48bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * Licensed under the Apache License, Version 2.0 (the "License");
58bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * you may not use this file except in compliance with the License.
68bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * You may obtain a copy of the License at
78bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov *
88bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov *      http://www.apache.org/licenses/LICENSE-2.0
98bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov *
108bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * Unless required by applicable law or agreed to in writing, software
118bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * distributed under the License is distributed on an "AS IS" BASIS,
128bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
138bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * See the License for the specific language governing permissions and
148bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * limitations under the License.
158bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov */
168bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov
178bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganovpackage android.view.accessibility;
188bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov
198bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganovimport android.view.accessibility.AccessibilityNodeInfo;
208bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganovimport java.util.List;
218bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov
228bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov/**
238bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * Callback for specifying the result for an asynchronous request made
248bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * via calling a method on IAccessibilityInteractionCallback.
258bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov *
268bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov * @hide
278bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov */
288bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganovoneway interface IAccessibilityInteractionCallback {
298bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov
308bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov    /**
318bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * Sets the result of an async request that returns an {@link AccessibilityNodeInfo}.
328bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     *
338bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * @param infos The result {@link AccessibilityNodeInfo}.
348bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * @param interactionId The interaction id to match the result with the request.
358bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     */
368bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov    void setFindAccessibilityNodeInfoResult(in AccessibilityNodeInfo info, int interactionId);
378bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov
388bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov    /**
398bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * Sets the result of an async request that returns {@link AccessibilityNodeInfo}s.
408bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     *
418bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * @param infos The result {@link AccessibilityNodeInfo}s.
428bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * @param interactionId The interaction id to match the result with the request.
438bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     */
448bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov    void setFindAccessibilityNodeInfosResult(in List<AccessibilityNodeInfo> infos,
458bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov        int interactionId);
468bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov
478bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov    /**
488bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * Sets the result of a request to perform an accessibility action.
498bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     *
508bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * @param Whether the action was performed.
518bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     * @param interactionId The interaction id to match the result with the request.
528bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov     */
538bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov    void setPerformAccessibilityActionResult(boolean succeeded, int interactionId);
548bd69610aafc6995126965d1d23b771fe02a9084Svetoslav Ganov}
55