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

Returns

Attributes

Remarks

Sets which surfaces a shortcut will be excluded from. This API is reserved for future extension. Currently, marking a shortcut to be excluded from ShortcutInfo.SURFACE_LAUNCHER will not publish the shortcut, thus the following operations will be a no-op: ShortcutManager.pushDynamicShortcut(android.content.pm.ShortcutInfo), android.content.pm.ShortcutManager.addDynamicShortcuts(List), and android.content.pm.ShortcutManager.setDynamicShortcuts(List).

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