語言

SpellCheckerSubtype.GetDisplayName(Context, String, ApplicationInfo) 方法

定義

會將這個拼字檢查子型態的顯示名稱作為字串。

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

參數

context
Context

Context 會用來取得 Locale 和 PackageManager。

packageName
String

拼字檢查器的套件名稱

appInfo
ApplicationInfo

拼字檢查器的應用程式資訊

傳回

此子型的顯示名稱。 標籤的字串資源(mSubTypeNameResId)只能有一個 %s。 如果有,格式化器會將 %s 部分替換成該區域的顯示名稱。 若沒有,此方法則直接回傳由 mSubTypeNameResID 指定的字串。 如果未指定 mSubTypeNameResId(== 0),則由框架自行產生適當的顯示名稱。

備註

Java 文件 android.view.textservice.SpellCheckerSubtype.getDisplayName(android.content.Context, java.lang.String, android.content.pm.ApplicationInfo)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於