語言

ShortcutManager.UpdateShortcuts(IList<ShortcutInfo>) 方法

定義

用相同的 ID 更新所有現有的捷徑。

[Android.Runtime.Register("updateShortcuts", "(Ljava/util/List;)Z", "GetUpdateShortcuts_Ljava_util_List_Handler", ApiSince=25)]
public virtual bool UpdateShortcuts(System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> shortcutInfoList);
[<Android.Runtime.Register("updateShortcuts", "(Ljava/util/List;)Z", "GetUpdateShortcuts_Ljava_util_List_Handler", ApiSince=25)>]
abstract member UpdateShortcuts : System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> -> bool
override this.UpdateShortcuts : System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo> -> bool

參數

shortcutInfoList
IList<ShortcutInfo>

欄位會更新現有且識別碼相符可變捷徑的資訊。

傳回

true 如果通話成功。 false 如果通話有費率限制。

屬性

備註

用相同的 ID 更新所有現有的捷徑。 目標捷徑可以是固定的和/或動態的,但不能是固定不變的。

此 API 將有速率限制。

Java 文件 android.content.pm.ShortcutManager.updateShortcuts(java.util.List<android.content.pm.ShortcutInfo>)。

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

適用於