ShortcutInfo.Builder.SetDisabledMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetDisabledMessage(ICharSequence) |
Sets the message that should be shown when the user attempts to start a shortcut that is disabled. |
| SetDisabledMessage(String) |
Sets the disabled-shortcut message from a string. |
SetDisabledMessage(ICharSequence)
Sets the message that should be shown when the user attempts to start a shortcut that is disabled.
[Android.Runtime.Register("setDisabledMessage", "(Ljava/lang/CharSequence;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetDisabledMessage_Ljava_lang_CharSequence_Handler", ApiSince=25)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetDisabledMessage(Java.Lang.ICharSequence disabledMessage);
[<Android.Runtime.Register("setDisabledMessage", "(Ljava/lang/CharSequence;)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetDisabledMessage_Ljava_lang_CharSequence_Handler", ApiSince=25)>]
abstract member SetDisabledMessage : Java.Lang.ICharSequence -> Android.Content.PM.ShortcutInfo.Builder
override this.SetDisabledMessage : Java.Lang.ICharSequence -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- disabledMessage
- ICharSequence
The nonempty message shown when a disabled shortcut is selected.
Returns
This builder after the disabled-shortcut message is assigned.
- Attributes
Remarks
Sets the message that should be shown when the user attempts to start a shortcut that is disabled.
Android reference for android.content.pm.ShortcutInfo.Builder.setDisabledMessage.
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
SetDisabledMessage(String)
Sets the disabled-shortcut message from a string.
public Android.Content.PM.ShortcutInfo.Builder SetDisabledMessage(string disabledMessage);
member this.SetDisabledMessage : string -> Android.Content.PM.ShortcutInfo.Builder
Parameters
- disabledMessage
- String
The nonempty disabled-shortcut message as a string.
Returns
This builder after the disabled-shortcut message is assigned.
Remarks
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.