ITextClassifierService.aidl revision d32906c202db3b84151c310ecd89a07bb41208f7
1/*
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.service.textclassifier;
18
19import android.service.textclassifier.ITextClassificationCallback;
20import android.service.textclassifier.ITextLinksCallback;
21import android.service.textclassifier.ITextSelectionCallback;
22import android.view.textclassifier.TextClassification;
23import android.view.textclassifier.TextLinks;
24import android.view.textclassifier.TextSelection;
25
26/**
27 * TextClassifierService binder interface.
28 * See TextClassifier for interface documentation.
29 * {@hide}
30 */
31oneway interface ITextClassifierService {
32
33    void onSuggestSelection(
34            in CharSequence text, int selectionStartIndex, int selectionEndIndex,
35            in TextSelection.Options options,
36            in ITextSelectionCallback c);
37
38    void onClassifyText(
39            in CharSequence text, int startIndex, int endIndex,
40            in TextClassification.Options options,
41            in ITextClassificationCallback c);
42
43    void onGenerateLinks(
44            in CharSequence text,
45            in TextLinks.Options options,
46            in ITextLinksCallback c);
47}
48