AbstractInputMethodService.AbstractInputMethodImpl.SetSessionEnabled 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過呼叫現有 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() 會話的方法來啟用或停用。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。