IInputMethod.RevokeSession(IInputMethodSession) 方法

定义

禁用和销毁以前创建的 #createSession(android.view.inputmethod.InputMethod.SessionCallback)会话。

[Android.Runtime.Register("revokeSession", "(Landroid/view/inputmethod/InputMethodSession;)V", "GetRevokeSession_Landroid_view_inputmethod_InputMethodSession_Handler:Android.Views.InputMethods.IInputMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RevokeSession(Android.Views.InputMethods.IInputMethodSession? session);
[<Android.Runtime.Register("revokeSession", "(Landroid/view/inputmethod/InputMethodSession;)V", "GetRevokeSession_Landroid_view_inputmethod_InputMethodSession_Handler:Android.Views.InputMethods.IInputMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RevokeSession : Android.Views.InputMethods.IInputMethodSession -> unit

参数

session
IInputMethodSession

InputMethodSession以前通过要撤销的 SessionCallback.sessionCreated()提供。

属性

注解

禁用和销毁以前创建的 #createSession(android.view.inputmethod.InputMethod.SessionCallback)会话。 此调用后,给定的会话接口不再处于活动状态,并且对它的调用将失败。

适用于 . 的 android.view.inputmethod.InputMethod.revokeSession(android.view.inputmethod.InputMethodSession)Java 文档

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

适用于