Sdílet prostřednictvím


InputMethodSubtype.GetDisplayName(Context, String, ApplicationInfo) Method

Definition

Returns a display name for this subtype.

public string GetDisplayName (Android.Content.Context? context, string? packageName, Android.Content.PM.ApplicationInfo? appInfo);
member this.GetDisplayName : Android.Content.Context * string * Android.Content.PM.ApplicationInfo -> string

Parameters

context
Context

Context will be used for getting Locale and android.content.pm.PackageManager.

packageName
String

The package name of the input method.

appInfo
ApplicationInfo

The ApplicationInfo of the input method.

Returns

a display name for this subtype.

Remarks

Returns a display name for this subtype.

If subtypeNameResId is specified (!= 0) text generated from that resource will be returned. The localized string resource of the label should be capitalized for inclusion in UI lists. The string resource may contain at most one %s. If present, the %s will be replaced with the display name of the subtype locale in the user's locale.

If subtypeNameResId is not specified (== 0) the framework returns the display name of the subtype locale, as capitalized for use in UI lists, in the user's locale.

Java documentation for android.view.inputmethod.InputMethodSubtype.getDisplayName(android.content.Context, java.lang.String, android.content.pm.ApplicationInfo).

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