android.inputmethodservice
Class InputMethodService

java.lang.Object
  extended by android.content.Context
      extended by android.content.ContextWrapper
          extended by android.app.Service
              extended by android.inputmethodservice.AbstractInputMethodService
                  extended by android.inputmethodservice.InputMethodService
All Implemented Interfaces:
ComponentCallbacks, KeyEvent.Callback

public class InputMethodService
extends AbstractInputMethodService


Nested Class Summary
 class InputMethodService.InputMethodImpl
           
 class InputMethodService.InputMethodSessionImpl
           
static class InputMethodService.Insets
           
 
Nested classes/interfaces inherited from class android.inputmethodservice.AbstractInputMethodService
AbstractInputMethodService.AbstractInputMethodImpl, AbstractInputMethodService.AbstractInputMethodSessionImpl
 
Field Summary
 
Fields inherited from class android.app.Service
START_CONTINUATION_MASK, START_FLAG_REDELIVERY, START_FLAG_RETRY, START_NOT_STICKY, START_REDELIVER_INTENT, START_STICKY, START_STICKY_COMPATIBILITY
 
Fields inherited from class android.content.Context
ACCESSIBILITY_SERVICE, ACCOUNT_SERVICE, ACTIVITY_SERVICE, ALARM_SERVICE, AUDIO_SERVICE, BIND_AUTO_CREATE, BIND_DEBUG_UNBIND, BIND_NOT_FOREGROUND, CLIPBOARD_SERVICE, CONNECTIVITY_SERVICE, CONTEXT_IGNORE_SECURITY, CONTEXT_INCLUDE_CODE, CONTEXT_RESTRICTED, DEVICE_POLICY_SERVICE, DOWNLOAD_SERVICE, DROPBOX_SERVICE, INPUT_METHOD_SERVICE, KEYGUARD_SERVICE, LAYOUT_INFLATER_SERVICE, LOCATION_SERVICE, MODE_APPEND, MODE_PRIVATE, MODE_WORLD_READABLE, MODE_WORLD_WRITEABLE, NOTIFICATION_SERVICE, POWER_SERVICE, SEARCH_SERVICE, SENSOR_SERVICE, STORAGE_SERVICE, TELEPHONY_SERVICE, UI_MODE_SERVICE, VIBRATOR_SERVICE, WALLPAPER_SERVICE, WIFI_SERVICE, WINDOW_SERVICE
 
Constructor Summary
InputMethodService()
           
 
Method Summary
protected  void dump(FileDescriptor fd, PrintWriter fout, String[] args)
           
 int getCandidatesHiddenVisibility()
           
 InputBinding getCurrentInputBinding()
           
 InputConnection getCurrentInputConnection()
           
 EditorInfo getCurrentInputEditorInfo()
           
 boolean getCurrentInputStarted()
           
 LayoutInflater getLayoutInflater()
           
 int getMaxWidth()
           
 CharSequence getTextForImeAction(int imeOptions)
           
 Dialog getWindow()
           
 void hideStatusIcon()
           
 void hideWindow()
           
 boolean isExtractViewShown()
           
 boolean isFullscreenMode()
           
 boolean isInputViewShown()
           
 boolean isShowInputRequested()
           
 void onAppPrivateCommand(String action, Bundle data)
           
 void onBindInput()
           
 void onComputeInsets(InputMethodService.Insets outInsets)
           
 void onConfigurationChanged(Configuration newConfig)
           
 void onConfigureWindow(Window win, boolean isFullscreen, boolean isCandidatesOnly)
           
 void onCreate()
           
 View onCreateCandidatesView()
           
 View onCreateExtractTextView()
           
 AbstractInputMethodService.AbstractInputMethodImpl onCreateInputMethodInterface()
           
 AbstractInputMethodService.AbstractInputMethodSessionImpl onCreateInputMethodSessionInterface()
           
 View onCreateInputView()
           
 void onDestroy()
           
 void onDisplayCompletions(CompletionInfo[] completions)
           
 boolean onEvaluateFullscreenMode()
           
 boolean onEvaluateInputViewShown()
           
 void onExtractedCursorMovement(int dx, int dy)
           
 void onExtractedSelectionChanged(int start, int end)
           
 void onExtractedTextClicked()
           
 void onExtractingInputChanged(EditorInfo ei)
           
 boolean onExtractTextContextMenuItem(int id)
           
 void onFinishCandidatesView(boolean finishingInput)
           
 void onFinishInput()
           
 void onFinishInputView(boolean finishingInput)
           
 void onInitializeInterface()
           
 boolean onKeyDown(int keyCode, KeyEvent event)
           
 boolean onKeyLongPress(int keyCode, KeyEvent event)
           
 boolean onKeyMultiple(int keyCode, int count, KeyEvent event)
           
 boolean onKeyUp(int keyCode, KeyEvent event)
           
 boolean onShowInputRequested(int flags, boolean configChange)
           
 void onStartCandidatesView(EditorInfo info, boolean restarting)
           
 void onStartInput(EditorInfo attribute, boolean restarting)
           
 void onStartInputView(EditorInfo info, boolean restarting)
           
 boolean onTrackballEvent(MotionEvent event)
           
 void onUnbindInput()
           
 void onUpdateCursor(Rect newCursor)
           
 void onUpdateExtractedText(int token, ExtractedText text)
           
 void onUpdateExtractingViews(EditorInfo ei)
           
 void onUpdateExtractingVisibility(EditorInfo ei)
           
 void onUpdateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)
           
 void onWindowHidden()
           
 void onWindowShown()
           
 void requestHideSelf(int flags)
           
 boolean sendDefaultEditorAction(boolean fromEnterKey)
           
 void sendDownUpKeyEvents(int keyEventCode)
           
 void sendKeyChar(char charCode)
           
 void setCandidatesView(View view)
           
 void setCandidatesViewShown(boolean shown)
           
 void setExtractView(View view)
           
 void setExtractViewShown(boolean shown)
           
 void setInputView(View view)
           
 void setTheme(int theme)
           
 void showStatusIcon(int iconResId)
           
 void showWindow(boolean showInput)
           
 void switchInputMethod(String id)
           
 void updateFullscreenMode()
           
 void updateInputViewShown()
           
 
Methods inherited from class android.inputmethodservice.AbstractInputMethodService
getKeyDispatcherState, onBind
 
Methods inherited from class android.app.Service
finalize, getApplication, onLowMemory, onRebind, onStart, onStartCommand, onUnbind, setForeground, startForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
 
Methods inherited from class android.content.ContextWrapper
attachBaseContext, bindService, checkCallingOrSelfPermission, checkCallingOrSelfUriPermission, checkCallingPermission, checkCallingUriPermission, checkPermission, checkUriPermission, checkUriPermission, clearWallpaper, createPackageContext, databaseList, deleteDatabase, deleteFile, enforceCallingOrSelfPermission, enforceCallingOrSelfUriPermission, enforceCallingPermission, enforceCallingUriPermission, enforcePermission, enforceUriPermission, enforceUriPermission, fileList, getApplicationContext, getApplicationInfo, getAssets, getBaseContext, getCacheDir, getClassLoader, getContentResolver, getDatabasePath, getDir, getExternalCacheDir, getExternalFilesDir, getFilesDir, getFileStreamPath, getMainLooper, getPackageCodePath, getPackageManager, getPackageName, getPackageResourcePath, getResources, getSharedPreferences, getSystemService, getTheme, getWallpaper, getWallpaperDesiredMinimumHeight, getWallpaperDesiredMinimumWidth, grantUriPermission, isRestricted, openFileInput, openFileOutput, openOrCreateDatabase, peekWallpaper, registerReceiver, registerReceiver, removeStickyBroadcast, revokeUriPermission, sendBroadcast, sendBroadcast, sendOrderedBroadcast, sendOrderedBroadcast, sendStickyBroadcast, sendStickyOrderedBroadcast, setWallpaper, setWallpaper, startActivity, startInstrumentation, startIntentSender, startService, stopService, unbindService, unregisterReceiver
 
Methods inherited from class android.content.Context
getString, getString, getText, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes, obtainStyledAttributes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputMethodService

public InputMethodService()
Method Detail

setTheme

public void setTheme(int theme)
Overrides:
setTheme in class ContextWrapper

onCreate

public void onCreate()
Overrides:
onCreate in class Service

onInitializeInterface

public void onInitializeInterface()

onDestroy

public void onDestroy()
Overrides:
onDestroy in class Service

onConfigurationChanged

public void onConfigurationChanged(Configuration newConfig)
Specified by:
onConfigurationChanged in interface ComponentCallbacks
Overrides:
onConfigurationChanged in class Service

onCreateInputMethodInterface

public AbstractInputMethodService.AbstractInputMethodImpl onCreateInputMethodInterface()
Specified by:
onCreateInputMethodInterface in class AbstractInputMethodService

onCreateInputMethodSessionInterface

public AbstractInputMethodService.AbstractInputMethodSessionImpl onCreateInputMethodSessionInterface()
Specified by:
onCreateInputMethodSessionInterface in class AbstractInputMethodService

getLayoutInflater

public LayoutInflater getLayoutInflater()

getWindow

public Dialog getWindow()

getMaxWidth

public int getMaxWidth()

getCurrentInputBinding

public InputBinding getCurrentInputBinding()

getCurrentInputConnection

public InputConnection getCurrentInputConnection()

getCurrentInputStarted

public boolean getCurrentInputStarted()

getCurrentInputEditorInfo

public EditorInfo getCurrentInputEditorInfo()

updateFullscreenMode

public void updateFullscreenMode()

onConfigureWindow

public void onConfigureWindow(Window win,
                              boolean isFullscreen,
                              boolean isCandidatesOnly)

isFullscreenMode

public boolean isFullscreenMode()

onEvaluateFullscreenMode

public boolean onEvaluateFullscreenMode()

setExtractViewShown

public void setExtractViewShown(boolean shown)

isExtractViewShown

public boolean isExtractViewShown()

onComputeInsets

public void onComputeInsets(InputMethodService.Insets outInsets)

updateInputViewShown

public void updateInputViewShown()

isShowInputRequested

public boolean isShowInputRequested()

isInputViewShown

public boolean isInputViewShown()

onEvaluateInputViewShown

public boolean onEvaluateInputViewShown()

setCandidatesViewShown

public void setCandidatesViewShown(boolean shown)

getCandidatesHiddenVisibility

public int getCandidatesHiddenVisibility()

showStatusIcon

public void showStatusIcon(int iconResId)

hideStatusIcon

public void hideStatusIcon()

switchInputMethod

public void switchInputMethod(String id)

setExtractView

public void setExtractView(View view)

setCandidatesView

public void setCandidatesView(View view)

setInputView

public void setInputView(View view)

onCreateExtractTextView

public View onCreateExtractTextView()

onCreateCandidatesView

public View onCreateCandidatesView()

onCreateInputView

public View onCreateInputView()

onStartInputView

public void onStartInputView(EditorInfo info,
                             boolean restarting)

onFinishInputView

public void onFinishInputView(boolean finishingInput)

onStartCandidatesView

public void onStartCandidatesView(EditorInfo info,
                                  boolean restarting)

onFinishCandidatesView

public void onFinishCandidatesView(boolean finishingInput)

onShowInputRequested

public boolean onShowInputRequested(int flags,
                                    boolean configChange)

showWindow

public void showWindow(boolean showInput)

hideWindow

public void hideWindow()

onWindowShown

public void onWindowShown()

onWindowHidden

public void onWindowHidden()

onBindInput

public void onBindInput()

onUnbindInput

public void onUnbindInput()

onStartInput

public void onStartInput(EditorInfo attribute,
                         boolean restarting)

onFinishInput

public void onFinishInput()

onDisplayCompletions

public void onDisplayCompletions(CompletionInfo[] completions)

onUpdateExtractedText

public void onUpdateExtractedText(int token,
                                  ExtractedText text)

onUpdateSelection

public void onUpdateSelection(int oldSelStart,
                              int oldSelEnd,
                              int newSelStart,
                              int newSelEnd,
                              int candidatesStart,
                              int candidatesEnd)

onUpdateCursor

public void onUpdateCursor(Rect newCursor)

requestHideSelf

public void requestHideSelf(int flags)

onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)

onKeyLongPress

public boolean onKeyLongPress(int keyCode,
                              KeyEvent event)

onKeyMultiple

public boolean onKeyMultiple(int keyCode,
                             int count,
                             KeyEvent event)

onKeyUp

public boolean onKeyUp(int keyCode,
                       KeyEvent event)

onTrackballEvent

public boolean onTrackballEvent(MotionEvent event)
Overrides:
onTrackballEvent in class AbstractInputMethodService

onAppPrivateCommand

public void onAppPrivateCommand(String action,
                                Bundle data)

sendDownUpKeyEvents

public void sendDownUpKeyEvents(int keyEventCode)

sendDefaultEditorAction

public boolean sendDefaultEditorAction(boolean fromEnterKey)

sendKeyChar

public void sendKeyChar(char charCode)

onExtractedSelectionChanged

public void onExtractedSelectionChanged(int start,
                                        int end)

onExtractedTextClicked

public void onExtractedTextClicked()

onExtractedCursorMovement

public void onExtractedCursorMovement(int dx,
                                      int dy)

onExtractTextContextMenuItem

public boolean onExtractTextContextMenuItem(int id)

getTextForImeAction

public CharSequence getTextForImeAction(int imeOptions)

onUpdateExtractingVisibility

public void onUpdateExtractingVisibility(EditorInfo ei)

onUpdateExtractingViews

public void onUpdateExtractingViews(EditorInfo ei)

onExtractingInputChanged

public void onExtractingInputChanged(EditorInfo ei)

dump

protected void dump(FileDescriptor fd,
                    PrintWriter fout,
                    String[] args)
Overrides:
dump in class AbstractInputMethodService


Copyright © 2008-2010. All Rights Reserved.