AbstractInputMethodService.AbstractInputMethodSessionImpl 类

定义

用于实现其 InputMethodSession 接口的派生类的基类。

[Android.Runtime.Register("android/inputmethodservice/AbstractInputMethodService$AbstractInputMethodSessionImpl", DoNotGenerateAcw=true)]
public abstract class AbstractInputMethodService.AbstractInputMethodSessionImpl : Java.Lang.Object, Android.Views.InputMethods.IInputMethodSession, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/inputmethodservice/AbstractInputMethodService$AbstractInputMethodSessionImpl", DoNotGenerateAcw=true)>]
type AbstractInputMethodService.AbstractInputMethodSessionImpl = class
    inherit Object
    interface IInputMethodSession
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
继承
AbstractInputMethodService.AbstractInputMethodSessionImpl
派生
属性
实现

注解

用于实现其 InputMethodSession 接口的派生类的基类。 这会处理会话的基本维护,但大多数行为必须在派生类中实现。

android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImplJava 文档。

此页面的部分内容是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的术语使用。

构造函数

AbstractInputMethodService.AbstractInputMethodSessionImpl(AbstractInputMethodService)

用于实现其 InputMethodSession 接口的派生类的基类。

AbstractInputMethodService.AbstractInputMethodSessionImpl(IntPtr, JniHandleOwnership)

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

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Enabled

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

Handle

基础 Android 实例的句柄。

(继承自 Object)
IsRevoked

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

JniIdentityHashCode

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
JniPeerMembers

用于实现其 InputMethodSession 接口的派生类的基类。

PeerReference

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
ThresholdClass

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

ThresholdType

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

方法

AppPrivateCommand(String, Bundle)

处理从应用程序发送到输入法的专用命令。

Clone()

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

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

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

DispatchKeyEvent(Int32, KeyEvent, IInputMethodSessionEventCallback)

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

DispatchTrackballEvent(Int32, MotionEvent, IInputMethodSessionEventCallback)

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

DisplayCompletions(CompletionInfo[])

由执行自动补全的文本编辑器调用,以告知输入方法其可用的完成情况。

Dispose()

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
Dispose(Boolean)

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
Equals(Object)

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

(继承自 Object)
FinishInput()

当应用程序想要停止接收文本输入时,将调用此方法。

GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

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

(继承自 Object)
Notify()

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

(继承自 Object)
NotifyAll()

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

(继承自 Object)
RevokeSelf()

从客户端撤消会话。

SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

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

用于实现其 InputMethodSession 接口的派生类的基类。

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

切换软输入窗口。

ToString()

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

(继承自 Object)
UnregisterFromRuntime()

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
UpdateCursor(Rect)

当目标输入字段的光标位置在其窗口中发生更改时,将调用此方法。

UpdateCursorAnchorInfo(CursorAnchorInfo)

在屏幕上更改光标和/或与文本输入相关的字符位置时,将调用此方法。

UpdateExtractedText(Int32, ExtractedText)

由文本编辑器调用,以在内容更改时报告其新提取的文本。

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

当当前目标输入字段中的选择或光标发生更改时,将调用此方法。

ViewClicked(Boolean)

当用户点击文本视图时,将调用此方法。

Wait()

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>。<>

(继承自 Object)
Wait(Int64)

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

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

导致当前线程等待,直到它被唤醒,通常是通过 em <通知/em> 或 <em>interrupted</em>,或直到经过一定数量的实时。<>

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed()

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
IJavaPeerable.DisposeUnlessReferenced()

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
IJavaPeerable.Finalized()

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)
IJavaPeerable.JniManagedPeerState

用于实现其 InputMethodSession 接口的派生类的基类。

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

用于实现其 InputMethodSession 接口的派生类的基类。

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

用于实现其 InputMethodSession 接口的派生类的基类。

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

用于实现其 InputMethodSession 接口的派生类的基类。

(继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

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

JavaCast<TResult>(IJavaObject)

用于实现其 InputMethodSession 接口的派生类的基类。

GetJniTypeName(IJavaPeerable)

用于实现其 InputMethodSession 接口的派生类的基类。

适用于