IInputMethod.CreateSession(IInputMethodSessionCallback) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new InputMethodSession that can be handed to client
applications for interacting with the input method.
[Android.Runtime.Register("createSession", "(Landroid/view/inputmethod/InputMethod$SessionCallback;)V", "GetCreateSession_Landroid_view_inputmethod_InputMethod_SessionCallback_Handler:Android.Views.InputMethods.IInputMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void CreateSession(Android.Views.InputMethods.IInputMethodSessionCallback? callback);
[<Android.Runtime.Register("createSession", "(Landroid/view/inputmethod/InputMethod$SessionCallback;)V", "GetCreateSession_Landroid_view_inputmethod_InputMethod_SessionCallback_Handler:Android.Views.InputMethods.IInputMethodInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateSession : Android.Views.InputMethods.IInputMethodSessionCallback -> unit
Parameters
- callback
- IInputMethodSessionCallback
Interface that is called with the newly created session.
- Attributes
Remarks
Create a new InputMethodSession that can be handed to client applications for interacting with the input method. You can later use revokeSession(InputMethodSession) to destroy the session so that it can no longer be used by any clients. This method must be called from the main thread of your app.
Android reference for android.view.inputmethod.InputMethod.createSession.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.