1c9a877174c6ba3552c1a6e396509f8d08049a3f6satok/* 2c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Copyright (C) 2011 The Android Open Source Project 3c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * 4c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Licensed under the Apache License, Version 2.0 (the "License"); 5c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * you may not use this file except in compliance with the License. 6c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * You may obtain a copy of the License at 7c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * 8c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * http://www.apache.org/licenses/LICENSE-2.0 9c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * 10c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Unless required by applicable law or agreed to in writing, software 11c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * distributed under the License is distributed on an "AS IS" BASIS, 12c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * See the License for the specific language governing permissions and 14c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * limitations under the License 15c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 16c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 17c9a877174c6ba3552c1a6e396509f8d08049a3f6satokpackage com.android.inputmethodcommon; 18c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 19c9a877174c6ba3552c1a6e396509f8d08049a3f6satokimport android.graphics.drawable.Drawable; 20c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 21c9a877174c6ba3552c1a6e396509f8d08049a3f6satok/** 22c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * InputMethodSettingsInterface is the interface for adding IME related preferences to 23c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * PreferenceActivity or PreferenceFragment. 24c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 25c9a877174c6ba3552c1a6e396509f8d08049a3f6satokpublic interface InputMethodSettingsInterface { 26c9a877174c6ba3552c1a6e396509f8d08049a3f6satok /** 27c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Sets the title for the input method settings category with a resource ID. 28c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * @param resId The resource ID of the title. 29c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 30c9a877174c6ba3552c1a6e396509f8d08049a3f6satok public void setInputMethodSettingsCategoryTitle(int resId); 31c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 32c9a877174c6ba3552c1a6e396509f8d08049a3f6satok /** 33c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Sets the title for the input method settings category with a CharSequence. 34c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * @param title The title for this preference. 35c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 36c9a877174c6ba3552c1a6e396509f8d08049a3f6satok public void setInputMethodSettingsCategoryTitle(CharSequence title); 37c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 38c9a877174c6ba3552c1a6e396509f8d08049a3f6satok /** 39c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Sets the title for the input method enabler preference for launching subtype enabler with a 40c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * resource ID. 41c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * @param resId The resource ID of the title. 42c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 43c9a877174c6ba3552c1a6e396509f8d08049a3f6satok public void setSubtypeEnablerTitle(int resId); 44c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 45c9a877174c6ba3552c1a6e396509f8d08049a3f6satok /** 46c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Sets the title for the input method enabler preference for launching subtype enabler with a 47c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * CharSequence. 48c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * @param title The title for this preference. 49c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 50c9a877174c6ba3552c1a6e396509f8d08049a3f6satok public void setSubtypeEnablerTitle(CharSequence title); 51c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 52c9a877174c6ba3552c1a6e396509f8d08049a3f6satok /** 53c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Sets the icon for the preference for launching subtype enabler with a resource ID. 54c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * @param resId The resource id of an optional icon for the preference. 55c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 56c9a877174c6ba3552c1a6e396509f8d08049a3f6satok public void setSubtypeEnablerIcon(int resId); 57c9a877174c6ba3552c1a6e396509f8d08049a3f6satok 58c9a877174c6ba3552c1a6e396509f8d08049a3f6satok /** 59c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * Sets the icon for the Preference for launching subtype enabler with a Drawable. 60c9a877174c6ba3552c1a6e396509f8d08049a3f6satok * @param drawable The drawable of an optional icon for the preference. 61c9a877174c6ba3552c1a6e396509f8d08049a3f6satok */ 62c9a877174c6ba3552c1a6e396509f8d08049a3f6satok public void setSubtypeEnablerIcon(Drawable drawable); 63c9a877174c6ba3552c1a6e396509f8d08049a3f6satok} 64