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() 会话。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。