ShortcutInfo.Builder.SetExcludedFromSurfaces(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定哪些表面會排除捷徑。
[Android.Runtime.Register("setExcludedFromSurfaces", "(I)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetExcludedFromSurfaces_IHandler", ApiSince=33)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetExcludedFromSurfaces(int surfaces);
[<Android.Runtime.Register("setExcludedFromSurfaces", "(I)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetExcludedFromSurfaces_IHandler", ApiSince=33)>]
abstract member SetExcludedFromSurfaces : int -> Android.Content.PM.ShortcutInfo.Builder
override this.SetExcludedFromSurfaces : int -> Android.Content.PM.ShortcutInfo.Builder
參數
- surfaces
- Int32
要儲存的捷徑-表面排除位元。
傳回
此建構器在表面排除遮罩後被指派。
- 屬性
備註
設定哪些表面會排除捷徑。 此 API 保留給未來擴充。 目前,將捷徑標記為排除於ShortcutInfo.SURFACE_LAUNCHER中不會發布該捷徑,因此以下操作將成為 no-op:ShortcutManager.pushDynamicShortcut(android.content.pm.ShortcutInfo)、android.content.pm.ShortcutManager.addDynamicShortcuts(List)以及 android.content.pm.ShortcutManager.setDynamicShortcuts(List)。
Android 參考資料。android.content.pm.ShortcutInfo.Builder.setExcludedFromSurfaces
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。