Share via


EditorInfo.PackageName Property

Definition

Name of the package that owns this editor.

[Android.Runtime.Register("packageName")]
public string? PackageName { get; set; }
[<Android.Runtime.Register("packageName")>]
member this.PackageName : string with get, set

Property Value

Attributes

Remarks

Name of the package that owns this editor.

<strong>IME authors:</strong> In API level 22 android.os.Build.VERSION_CODES#LOLLIPOP_MR1 and prior, do not trust this package name. The system had not verified the consistency between the package name here and application's uid. Consider to use InputBinding#getUid(), which is trustworthy. Starting from android.os.Build.VERSION_CODES#M, the system verifies the consistency between this package name and application uid before EditorInfo is passed to the input method.

<strong>Editor authors:</strong> Starting from android.os.Build.VERSION_CODES#M, the application is no longer able to establish input connections if the package name provided here is inconsistent with application's uid.

Java documentation for android.view.inputmethod.EditorInfo.packageName.

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