ShortcutInfo.Builder.SetShortLabel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetShortLabel(ICharSequence) |
設定了一條捷徑的簡短標題。 |
| SetShortLabel(String) |
從字串設定捷徑的短標籤。 |
SetShortLabel(ICharSequence)
設定了一條捷徑的簡短標題。
[Android.Runtime.Register("setShortLabel", "(Ljava/lang/CharSequence;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetShortLabel_Ljava_lang_CharSequence_Handler", ApiSince=25)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetShortLabel(Java.Lang.ICharSequence shortLabel);
[<Android.Runtime.Register("setShortLabel", "(Ljava/lang/CharSequence;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetShortLabel_Ljava_lang_CharSequence_Handler", ApiSince=25)>]
abstract member SetShortLabel : Java.Lang.ICharSequence -> Android.Content.PM.ShortcutInfo.Builder
override this.SetShortLabel : Java.Lang.ICharSequence -> Android.Content.PM.ShortcutInfo.Builder
參數
- shortLabel
- ICharSequence
用來描述捷徑的非空短標題。
傳回
這個建構者在短標籤後被指派。
- 屬性
備註
設定了一條捷徑的簡短標題。 這是使用 ShortcutManager.addDynamicShortcuts(List) 或 ShortcutManager.setDynamicShortcuts(List) 發布新捷徑時必須填寫的欄位。 此欄位旨在簡潔描述捷徑。 建議最大長度為 10 個字元。
Android 參考資料。android.content.pm.ShortcutInfo.Builder.setShortLabel
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
SetShortLabel(String)
從字串設定捷徑的短標籤。
public Android.Content.PM.ShortcutInfo.Builder SetShortLabel(string shortLabel);
member this.SetShortLabel : string -> Android.Content.PM.ShortcutInfo.Builder
參數
- shortLabel
- String
非空的短標題作為一個字串。
傳回
這個建構者在短標籤後被指派。
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。