Control.StatefulBuilder.SetStatusText 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 |
|---|---|
| SetStatusText(ICharSequence) |
Sets the text that describes the current device state. |
| SetStatusText(String) |
Sets the text that describes the current device state. |
SetStatusText(ICharSequence)
Sets the text that describes the current device state.
[Android.Runtime.Register("setStatusText", "(Ljava/lang/CharSequence;)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=30)]
public Android.Service.Controls.Control.StatefulBuilder SetStatusText(Java.Lang.ICharSequence statusText);
[<Android.Runtime.Register("setStatusText", "(Ljava/lang/CharSequence;)Landroid/service/controls/Control$StatefulBuilder;", "", ApiSince=30)>]
member this.SetStatusText : Java.Lang.ICharSequence -> Android.Service.Controls.Control.StatefulBuilder
Parameters
- statusText
- ICharSequence
user-facing text description of the Control's status, describing its current state. This value cannot be null.
Returns
this This value cannot be null.
- Attributes
Remarks
Android reference for android.service.controls.Control.StatefulBuilder.setStatusText.
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
SetStatusText(String)
Sets the text that describes the current device state.
public Android.Service.Controls.Control.StatefulBuilder SetStatusText(string statusText);
member this.SetStatusText : string -> Android.Service.Controls.Control.StatefulBuilder
Parameters
- statusText
- String
Text that describes the current device state to the user. This value must not be null.
Returns
This builder.
Remarks
This overload supplies the status text as a string instead of a Java character sequence. Android can replace this text with a system message for an error or a disabled control.
See the Android implementation.