IInputMethod.RevokeSession(IInputMethodSession) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
禁用和销毁以前创建的 #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 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。