Language

ShortcutInfo.Builder.SetExcludedFromSurfaces(Int32) Method

Definition

Sets which surfaces a shortcut will be excluded from.

[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

Parameters

surfaces
Int32

The shortcut-surface exclusion bits to store.

Returns

This builder after the surface-exclusion mask is assigned.

Attributes

Remarks

Sets which surfaces a shortcut will be excluded from. This API is reserved for future extension. A shortcut excluded from the launcher is not added as a launcher-visible dynamic shortcut by ShortcutManager.PushDynamicShortcut, ShortcutManager.AddDynamicShortcuts, or ShortcutManager.SetDynamicShortcuts. These operations can still affect other shortcuts: SetDynamicShortcuts replaces the existing dynamic shortcuts, and PushDynamicShortcut can remove a shortcut when the limit is reached.

Android reference for android.content.pm.ShortcutInfo.Builder.setExcludedFromSurfaces.

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