语言

InputMethodService.InputMethodSessionImpl 类

定义

具体 AbstractInputMethodService.AbstractInputMethodSessionImpl 实现为输入法会话提供所有标准行为。

[Android.Runtime.Register("android/inputmethodservice/InputMethodService$InputMethodSessionImpl", DoNotGenerateAcw=true)]
public class InputMethodService.InputMethodSessionImpl : Android.InputMethodServices.AbstractInputMethodService.AbstractInputMethodSessionImpl
[<Android.Runtime.Register("android/inputmethodservice/InputMethodService$InputMethodSessionImpl", DoNotGenerateAcw=true)>]
type InputMethodService.InputMethodSessionImpl = class
    inherit AbstractInputMethodService.AbstractInputMethodSessionImpl
继承
特性

注解

具体 AbstractInputMethodService.AbstractInputMethodSessionImpl 实现为输入法会话提供所有标准行为。

Java文档android.inputmethodservice.InputMethodService.InputMethodSessionImpl。

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

构造函数

名称 说明
InputMethodService.InputMethodSessionImpl(InputMethodService)

初始化与指定服务关联的输入法会话。

InputMethodService.InputMethodSessionImpl(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

属性

名称 说明
Class

返回此 Object的运行时类。

(继承自 Object)
Enabled

检查是否已由系统启用此会话。 - 或 - 更改会话的启用状态。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
Handle

基础 Android 实例的句柄。

(继承自 Object)
IsRevoked

检查是否已由系统吊销此会话。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
JniIdentityHashCode

获取互操作运行时分配给此Java对等的标识哈希代码。

(继承自 Object)
JniManagedPeerState

获取运行时上次分配的状态标志。

(继承自 JavaObject)
JniPeerMembers

获取用于访问此Java绑定成员的 JNI 元数据。

PeerReference

获取此Java对等方的 JNI 对象引用。

(继承自 Object)
ThresholdClass

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

ThresholdType

此 API 支持 Mono for Android 基础结构,不打算直接从代码使用。

方法

名称 说明
AppPrivateCommand(String, Bundle)

调用 InputMethodService#onAppPrivateCommand InputMethodService.onAppPrivateCommand()。

Clone()

创建并返回此对象的副本。

(继承自 Object)
Construct(JniObjectReference, JniObjectReferenceOptions)

将此对等方的构造委托给运行时的值管理器。

(继承自 JavaObject)
DispatchGenericMotionEvent(Int32, MotionEvent, IInputMethodSessionEventCallback)

负责将传入的泛型运动事件调度到服务上的相应回调,并在完成此操作时告诉客户端。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
DispatchKeyEvent(Int32, KeyEvent, IInputMethodSessionEventCallback)

负责将传入密钥事件调度到服务上的相应回调,并在完成此操作时告知客户端。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
DispatchTrackballEvent(Int32, MotionEvent, IInputMethodSessionEventCallback)

负责将传入的跟踪球事件调度到服务上的相应回调,并在完成此操作时告知客户端。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
DisplayCompletions(CompletionInfo[])

调用 InputMethodService#onDisplayCompletions InputMethodService.onDisplayCompletions()。

Dispose()

释放此Java对等方持有的资源。

(继承自 Object)
Dispose(Boolean)

为子类提供处置挂钩。 此实现不执行任何操作。

(继承自 Object)
DisposeUnlessReferenced()

要求值管理器释放此对等方,除非其映射保留此相同的托管实例。

(继承自 JavaObject)
Equals(Object)

测试另一个托管对等方是否引用同一Java对象。

(继承自 JavaObject)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
FinishInput()

在基本实现中,仅在启用会话时完成输入。

GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()
已过时.

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
OnShouldVerifyKeyEvent(KeyEvent)

在基本实现中,询问封闭服务是否请求密钥事件验证。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
RevokeSelf()

从客户端撤消会话。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

在不创建 JNI 引用副本的情况下,将引用值存储在控制块中。

(继承自 JavaObject)
ToArray<T>()

从此Java数组包装器创建托管数组。

(继承自 Object)
ToggleSoftInput(ShowFlags, HideSoftInputFlags)

处理用于切换 IME 可见性的请求。

ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime()

从互操作运行时取消注册此Java对等。

(继承自 Object)
UpdateCursor(Rect)

调用 InputMethodService#onUpdateCursor InputMethodService.onUpdateCursor()。

UpdateCursorAnchorInfo(CursorAnchorInfo)

调用 InputMethodService#onUpdateCursorAnchorInfo InputMethodService.onUpdateCursorAnchorInfo()。

UpdateExtractedText(Int32, ExtractedText)

调用 InputMethodService#onUpdateExtractedText InputMethodService.onUpdateExtractedText()。

UpdateSelection(Int32, Int32, Int32, Int32, Int32, Int32)

调用 InputMethodService#onUpdateSelection InputMethodService.onUpdateSelection()。

ViewClicked(Boolean)

在基本实现中,如果启用了会话,则会将通知转发到服务。

Wait()

导致当前线程等待,直到它被唤醒,通常是通过 通知 或 中断。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 通知 或 中断,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 通知 或 中断,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

名称 说明
IJavaPeerable.Disposed()

将此对等方标记为已释放,并将disposing调用Dispose设置为 true.

(继承自 JavaObject)
IJavaPeerable.Finalized()

将此对等方标记为已释放,并将disposing调用Dispose设置为 false.

(继承自 JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

获取此对等方使用的本机控制块指针。

(继承自 JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

存储运行时提供的标识哈希代码。

(继承自 JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

替换存储的托管对等状态标志。

(继承自 JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

更新对等引用,并在引用无效时释放已释放的对等方控制块。

(继承自 JavaObject)
IJavaPeerable.UnregisterFromRuntime()

从运行时的Java对象查找中删除此实例。

(继承自 AbstractInputMethodService.AbstractInputMethodSessionImpl)

扩展方法

名称 说明
GetJniTypeName(IJavaPeerable)

获取实例 self类型的 JNI 名称。

JavaAs<TResult>(IJavaPeerable)

尝试强制self键入TResult,检查强制是否在Java端有效。

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)

重复使用兼容的托管对等,或获取请求类型的包装器。

TryJavaCast<TResult>(IJavaPeerable, TResult)

尝试强制self键入TResult,检查强制是否在Java端有效。

适用于