AbstractInputMethodService.AbstractInputMethodImpl.SetSessionEnabled 方法

定義

透過呼叫現有 AbstractInputMethodSessionImpl#revokeSelf() AbstractInputMethodSessionImpl.setEnabled() 會話的方法來啟用或停用。

[Android.Runtime.Register("setSessionEnabled", "(Landroid/view/inputmethod/InputMethodSession;Z)V", "GetSetSessionEnabled_Landroid_view_inputmethod_InputMethodSession_ZHandler")]
public virtual void SetSessionEnabled(Android.Views.InputMethods.IInputMethodSession session, bool enabled);
[<Android.Runtime.Register("setSessionEnabled", "(Landroid/view/inputmethod/InputMethodSession;Z)V", "GetSetSessionEnabled_Landroid_view_inputmethod_InputMethodSession_ZHandler")>]
abstract member SetSessionEnabled : Android.Views.InputMethods.IInputMethodSession * bool -> unit
override this.SetSessionEnabled : Android.Views.InputMethods.IInputMethodSession * bool -> unit

參數

session
IInputMethodSession

IInputMethodSession先前透過 SessionCallback.sessionCreated() 提供的,將被更改。

enabled
Boolean

實作

屬性

備註

透過呼叫現有 AbstractInputMethodSessionImpl#revokeSelf() AbstractInputMethodSessionImpl.setEnabled() 會話的方法來啟用或停用。

Java 文件 android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl.setSessionEnabled(android.view.inputmethod.InputMethodSession, boolean)

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

適用於