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