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)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于