Most visited

Recently visited

Added in API level 3

InputMethodService.InputMethodImpl

public class InputMethodService.InputMethodImpl
extends AbstractInputMethodService.AbstractInputMethodImpl

java.lang.Object
   ↳ android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl
     ↳ android.inputmethodservice.InputMethodService.InputMethodImpl


AbstractInputMethodService.AbstractInputMethodImpl具体实现,提供输入方法的所有标准行为。

Summary

Inherited constants

From interface android.view.inputmethod.InputMethod

Public constructors

InputMethodService.InputMethodImpl()

Public methods

void attachToken(IBinder token)

注意附加系统提供的给定窗口令牌。

void bindInput(InputBinding binding)

处理新的输入绑定,完成后调用 InputMethodService.onBindInput()

void changeInputMethodSubtype(InputMethodSubtype subtype)
void hideSoftInput(int flags, ResultReceiver resultReceiver)

处理系统请求隐藏软输入区域。

void restartInput(InputConnection ic, EditorInfo attribute)
void showSoftInput(int flags, ResultReceiver resultReceiver)

处理系统请求显示软输入区域。

void startInput(InputConnection ic, EditorInfo attribute)
void unbindInput()

清除当前的输入绑定。

Inherited methods

From class android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl
From class java.lang.Object
From interface android.view.inputmethod.InputMethod

Public constructors

InputMethodService.InputMethodImpl

Added in API level 3
InputMethodService.InputMethodImpl ()

Public methods

attachToken

Added in API level 3
void attachToken (IBinder token)

注意附加系统提供的给定窗口令牌。

Parameters
token IBinder

bindInput

Added in API level 3
void bindInput (InputBinding binding)

处理新的输入绑定,完成后调用 InputMethodService.onBindInput()

Parameters
binding InputBinding

changeInputMethodSubtype

Added in API level 11
void changeInputMethodSubtype (InputMethodSubtype subtype)

Parameters
subtype InputMethodSubtype

hideSoftInput

Added in API level 3
void hideSoftInput (int flags, 
                ResultReceiver resultReceiver)

处理系统请求隐藏软输入区域。

Parameters
flags int
resultReceiver ResultReceiver

restartInput

Added in API level 3
void restartInput (InputConnection ic, 
                EditorInfo attribute)

Parameters
ic InputConnection
attribute EditorInfo

showSoftInput

Added in API level 3
void showSoftInput (int flags, 
                ResultReceiver resultReceiver)

处理系统请求显示软输入区域。

Parameters
flags int
resultReceiver ResultReceiver

startInput

Added in API level 3
void startInput (InputConnection ic, 
                EditorInfo attribute)

Parameters
ic InputConnection
attribute EditorInfo

unbindInput

Added in API level 3
void unbindInput ()

清除当前的输入绑定。

Hooray!