IInputMethodManager.aidl revision d24b8183b93e781080b2c16c487e60d51c12da31
1/*
2 * Copyright (C) 2008 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 com.android.internal.view;
18
19import android.view.inputmethod.InputMethodInfo;
20import android.view.inputmethod.EditorInfo;
21import com.android.internal.view.InputBindResult;
22import com.android.internal.view.IInputContext;
23import com.android.internal.view.IInputMethodClient;
24
25/**
26 * Public interface to the global input method manager, used by all client
27 * applications.
28 */
29interface IInputMethodManager {
30    List<InputMethodInfo> getInputMethodList();
31    List<InputMethodInfo> getEnabledInputMethodList();
32
33    void addClient(in IInputMethodClient client,
34            in IInputContext inputContext, int uid, int pid);
35    void removeClient(in IInputMethodClient client);
36
37    InputBindResult startInput(in IInputMethodClient client,
38            IInputContext inputContext, in EditorInfo attribute,
39            boolean initial, boolean needResult);
40    void finishInput(in IInputMethodClient client);
41    void showSoftInput(in IInputMethodClient client, int flags);
42    void hideSoftInput(in IInputMethodClient client, int flags);
43    void windowGainedFocus(in IInputMethodClient client,
44            boolean viewHasFocus, boolean isTextEditor,
45            int softInputMode, boolean first, int windowFlags);
46
47    void showInputMethodPickerFromClient(in IInputMethodClient client);
48    void setInputMethod(in IBinder token, String id);
49    void hideMySoftInput(in IBinder token, int flags);
50    void updateStatusIcon(int iconId, String iconPackage);
51
52    boolean setInputMethodEnabled(String id, boolean enabled);
53}
54
55