共用方式為


ShortcutManager.DisableShortcuts Method

Definition

Overloads

DisableShortcuts(IList<String>)

Disable pinned shortcuts.

DisableShortcuts(IList<String>, ICharSequence)

Disable pinned shortcuts, showing the user a custom error message when they try to select the disabled shortcuts.

DisableShortcuts(IList<String>, String)

Disable pinned shortcuts, showing the user a custom error message when they try to select the disabled shortcuts.

DisableShortcuts(IList<String>)

Disable pinned shortcuts.

[Android.Runtime.Register("disableShortcuts", "(Ljava/util/List;)V", "GetDisableShortcuts_Ljava_util_List_Handler", ApiSince=25)]
public virtual void DisableShortcuts (System.Collections.Generic.IList<string> shortcutIds);
[<Android.Runtime.Register("disableShortcuts", "(Ljava/util/List;)V", "GetDisableShortcuts_Ljava_util_List_Handler", ApiSince=25)>]
abstract member DisableShortcuts : System.Collections.Generic.IList<string> -> unit
override this.DisableShortcuts : System.Collections.Generic.IList<string> -> unit

Parameters

shortcutIds
IList<String>
Attributes

Remarks

Disable pinned shortcuts. For more details, read

Disable shortcuts.

Java documentation for android.content.pm.ShortcutManager.disableShortcuts(java.util.List<java.lang.String>).

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

DisableShortcuts(IList<String>, ICharSequence)

Disable pinned shortcuts, showing the user a custom error message when they try to select the disabled shortcuts.

[Android.Runtime.Register("disableShortcuts", "(Ljava/util/List;Ljava/lang/CharSequence;)V", "GetDisableShortcuts_Ljava_util_List_Ljava_lang_CharSequence_Handler", ApiSince=25)]
public virtual void DisableShortcuts (System.Collections.Generic.IList<string> shortcutIds, Java.Lang.ICharSequence? disabledMessage);
[<Android.Runtime.Register("disableShortcuts", "(Ljava/util/List;Ljava/lang/CharSequence;)V", "GetDisableShortcuts_Ljava_util_List_Ljava_lang_CharSequence_Handler", ApiSince=25)>]
abstract member DisableShortcuts : System.Collections.Generic.IList<string> * Java.Lang.ICharSequence -> unit
override this.DisableShortcuts : System.Collections.Generic.IList<string> * Java.Lang.ICharSequence -> unit

Parameters

shortcutIds
IList<String>
disabledMessage
ICharSequence
Attributes

Remarks

Disable pinned shortcuts, showing the user a custom error message when they try to select the disabled shortcuts. For more details, read

Disable shortcuts.

Java documentation for android.content.pm.ShortcutManager.disableShortcuts(java.util.List<java.lang.String>, java.lang.CharSequence).

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

DisableShortcuts(IList<String>, String)

Disable pinned shortcuts, showing the user a custom error message when they try to select the disabled shortcuts.

public void DisableShortcuts (System.Collections.Generic.IList<string> shortcutIds, string? disabledMessage);
member this.DisableShortcuts : System.Collections.Generic.IList<string> * string -> unit

Parameters

shortcutIds
IList<String>
disabledMessage
String

Remarks

Disable pinned shortcuts, showing the user a custom error message when they try to select the disabled shortcuts. For more details, read

Disable shortcuts.

Java documentation for android.content.pm.ShortcutManager.disableShortcuts(java.util.List<java.lang.String>, java.lang.CharSequence).

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