Share via


SpellCheckerSubtype.GetDisplayName(Context, String, ApplicationInfo) Method

Definition

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 PackageManager.

packageName
String

The package name of the spell checker

appInfo
ApplicationInfo

The application info of the spell checker

Returns

a display name for this subtype. The string resource of the label (mSubtypeNameResId) can have only one %s in it. If there is, the %s part will be replaced with the locale's display name by the formatter. If there is not, this method simply returns the string specified by mSubtypeNameResId. If mSubtypeNameResId is not specified (== 0), it's up to the framework to generate an appropriate display name.

Remarks

Java documentation for android.view.textservice.SpellCheckerSubtype.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