Udostępnij za pośrednictwem


BaseInputConnection.CommitContent Method

Definition

Default implementation which invokes View#performReceiveContent on the target view if the view View#getReceiveContentMimeTypes allows content insertion; otherwise returns false without any side effects.

[Android.Runtime.Register("commitContent", "(Landroid/view/inputmethod/InputContentInfo;ILandroid/os/Bundle;)Z", "GetCommitContent_Landroid_view_inputmethod_InputContentInfo_ILandroid_os_Bundle_Handler", ApiSince=25)]
public virtual bool CommitContent (Android.Views.InputMethods.InputContentInfo? inputContentInfo, Android.Views.InputMethods.InputContentFlags flags, Android.OS.Bundle? opts);
[<Android.Runtime.Register("commitContent", "(Landroid/view/inputmethod/InputContentInfo;ILandroid/os/Bundle;)Z", "GetCommitContent_Landroid_view_inputmethod_InputContentInfo_ILandroid_os_Bundle_Handler", ApiSince=25)>]
abstract member CommitContent : Android.Views.InputMethods.InputContentInfo * Android.Views.InputMethods.InputContentFlags * Android.OS.Bundle -> bool
override this.CommitContent : Android.Views.InputMethods.InputContentInfo * Android.Views.InputMethods.InputContentFlags * Android.OS.Bundle -> bool

Parameters

inputContentInfo
InputContentInfo
opts
Bundle

Returns

Implements

Attributes

Remarks

Default implementation which invokes View#performReceiveContent on the target view if the view View#getReceiveContentMimeTypes allows content insertion; otherwise returns false without any side effects.

Java documentation for android.view.inputmethod.BaseInputConnection.commitContent(android.view.inputmethod.InputContentInfo, int, android.os.Bundle).

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