IInputMethodManager.aidl revision 9266c558bf1d21ff647525ff99f7dadbca417309
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            in EditorInfo attribute, boolean initial, boolean needResult);
39    void finishInput(in IInputMethodClient client);
40    void showSoftInput(in IInputMethodClient client, int flags);
41    void hideSoftInput(in IInputMethodClient client, int flags);
42    void windowGainedFocus(in IInputMethodClient client,
43            boolean viewHasFocus, boolean isTextEditor,
44            int softInputMode, boolean first, int windowFlags);
45
46    void showInputMethodPickerFromClient(in IInputMethodClient client);
47    void setInputMethod(in IBinder token, String id);
48    void hideMySoftInput(in IBinder token, int flags);
49    void updateStatusIcon(int iconId, String iconPackage);
50
51    boolean setInputMethodEnabled(String id, boolean enabled);
52}
53
54