InputConnectionWrapper.PerformPrivateCommand(String, Bundle) 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.
API to send private commands from an input method to its connected editor.
[Android.Runtime.Register("performPrivateCommand", "(Ljava/lang/String;Landroid/os/Bundle;)Z", "GetPerformPrivateCommand_Ljava_lang_String_Landroid_os_Bundle_Handler")]
public virtual bool PerformPrivateCommand(string? action, Android.OS.Bundle? data);
[<Android.Runtime.Register("performPrivateCommand", "(Ljava/lang/String;Landroid/os/Bundle;)Z", "GetPerformPrivateCommand_Ljava_lang_String_Landroid_os_Bundle_Handler")>]
abstract member PerformPrivateCommand : string * Android.OS.Bundle -> bool
override this.PerformPrivateCommand : string * Android.OS.Bundle -> bool
Parameters
- action
- String
Name of the command to be performed. This must be a scoped name, i.e. prefixed with a package name you own, so that different developers will not create conflicting commands.
- data
- Bundle
Any data to include with the command.
Returns
The value returned by the target connection.
Implements
- Attributes
Remarks
API to send private commands from an input method to its connected editor. This can be used to provide domain-specific features that are only known between certain input methods and their clients. When the target is a remote input connection, the request can be asynchronous and the return value does not indicate whether the client understood the command. You can use the information in EditorInfo to determine if a client supports a particular command.
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.