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