InputMethod Constructors
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.
Overloads
| Name | Description |
|---|---|
| InputMethod(AccessibilityService) |
Creates a new InputMethod instance for the given |
| InputMethod(IntPtr, JniHandleOwnership) |
Creates a managed instance that represents an existing Java object. |
InputMethod(AccessibilityService)
Creates a new InputMethod instance for the given service, so that the
accessibility service can control editing.
[Android.Runtime.Register(".ctor", "(Landroid/accessibilityservice/AccessibilityService;)V", "", ApiSince=33)]
public InputMethod(Android.AccessibilityServices.AccessibilityService service);
[<Android.Runtime.Register(".ctor", "(Landroid/accessibilityservice/AccessibilityService;)V", "", ApiSince=33)>]
new Android.AccessibilityServices.InputMethod : Android.AccessibilityServices.AccessibilityService -> Android.AccessibilityServices.InputMethod
Parameters
- service
- AccessibilityService
The accessibility service whose text editing this input method supports.
- Attributes
Remarks
Creates a new InputMethod instance for the given service, so that the accessibility service can control editing.
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.
Applies to
InputMethod(IntPtr, JniHandleOwnership)
Creates a managed instance that represents an existing Java object.
protected InputMethod(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.AccessibilityServices.InputMethod : nativeint * Android.Runtime.JniHandleOwnership -> Android.AccessibilityServices.InputMethod
Parameters
- javaReference
-
IntPtr
nativeint
A JNI reference to the Java object.
- transfer
- JniHandleOwnership
Specifies whether ownership of the JNI reference transfers to this instance.
Remarks
The runtime calls this constructor to create a managed representation of an existing Java object.