blob: 140507c80ed028dfcb68a3a50d860ac87cc5d73a [file] [log] [blame]
Felipe Leme284ad1c2018-11-15 18:16:12 -08001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.view.autofill;
18
19import java.util.List;
20
21import android.graphics.Rect;
22import android.view.autofill.AutofillId;
23import android.view.autofill.AutofillValue;
Feng Cao158b6562019-01-07 15:42:52 -080024import android.view.autofill.IAutofillWindowPresenter;
Felipe Leme284ad1c2018-11-15 18:16:12 -080025
26/**
27 * Object running in the application process and responsible to provide the functionalities
28 * required by an Augmented Autofill service.
29 *
30 * @hide
31 */
32interface IAugmentedAutofillManagerClient {
Feng Cao158b6562019-01-07 15:42:52 -080033 /**
34 * Gets the coordinates of the input field view.
35 */
36 Rect getViewCoordinates(in AutofillId id);
37
38 /**
39 * Autofills the activity with the contents of the values.
40 */
41 void autofill(int sessionId, in List<AutofillId> ids, in List<AutofillValue> values);
42
43 /**
44 * Requests showing the fill UI.
45 */
46 void requestShowFillUi(int sessionId, in AutofillId id, int width, int height,
47 in Rect anchorBounds, in IAutofillWindowPresenter presenter);
48
49 /**
50 * Requests hiding the fill UI.
51 */
52 void requestHideFillUi(int sessionId, in AutofillId id);
Felipe Leme284ad1c2018-11-15 18:16:12 -080053}