共用方式為


InputConnectionWrapper.SetTarget(IInputConnection) Method

Definition

Change the target of the input connection.

[Android.Runtime.Register("setTarget", "(Landroid/view/inputmethod/InputConnection;)V", "GetSetTarget_Landroid_view_inputmethod_InputConnection_Handler")]
public virtual void SetTarget (Android.Views.InputMethods.IInputConnection? target);
[<Android.Runtime.Register("setTarget", "(Landroid/view/inputmethod/InputConnection;)V", "GetSetTarget_Landroid_view_inputmethod_InputConnection_Handler")>]
abstract member SetTarget : Android.Views.InputMethods.IInputConnection -> unit
override this.SetTarget : Android.Views.InputMethods.IInputConnection -> unit

Parameters

target
IInputConnection

the InputConnection to be proxied.

Attributes

Remarks

Change the target of the input connection.

<b>Caveat:</b> Although the system can accept (InputConnection) null in some places, you cannot emulate such a behavior by non-null InputConnectionWrapper that has null in target.

Java documentation for android.view.inputmethod.InputConnectionWrapper.setTarget(android.view.inputmethod.InputConnection).

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