InputMethodManager.SendAppPrivateCommand(View, String, Bundle) 方法

定义

对当前输入法的调用 InputMethodSession#appPrivateCommand(String, Bundle) InputMethodSession.appPrivateCommand()

[Android.Runtime.Register("sendAppPrivateCommand", "(Landroid/view/View;Ljava/lang/String;Landroid/os/Bundle;)V", "")]
public void SendAppPrivateCommand(Android.Views.View? view, string? action, Android.OS.Bundle? data);
[<Android.Runtime.Register("sendAppPrivateCommand", "(Landroid/view/View;Ljava/lang/String;Landroid/os/Bundle;)V", "")>]
member this.SendAppPrivateCommand : Android.Views.View * string * Android.OS.Bundle -> unit

参数

view
View

要发送命令的可选视图,或者如果要发送命令,则为 null,而不考虑附加到输入法的视图。

action
String

要执行的命令的名称。 此 <em>必须是<>作用域名称,即以你拥有的包名称为前缀,以便不同的开发人员不会创建冲突的命令。

data
Bundle

要包含在命令中的任何数据。

属性

注解

对当前输入法的调用 InputMethodSession#appPrivateCommand(String, Bundle) InputMethodSession.appPrivateCommand()

适用于 . 的 android.view.inputmethod.InputMethodManager.sendAppPrivateCommand(android.view.View, java.lang.String, android.os.Bundle)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于