語言

IInputMethod.RevokeSession(IInputMethodSession) 方法

定義

停用並銷毀先前用 建立的 #createSession(android.view.inputmethod.InputMethod.SessionCallback)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")]
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

先前透過 SessionCallback.sessionCreated() 提供的該資料 InputMethodSession 將被撤銷。

屬性

備註

停用並銷毀先前用 建立的 #createSession(android.view.inputmethod.InputMethod.SessionCallback)session 。 此呼叫結束後,該會話介面不再活躍,呼叫將失敗。

Java 文件 android.view.inputmethod.InputMethod.revokeSession(android.view.inputmethod.InputMethodSession)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於