RemoteInput.Builder.SetLabel Method

Definition

Overloads

Name Description
SetLabel(ICharSequence)

Set a label to be displayed to the user when collecting this input.

SetLabel(String)

Set a label to be displayed to the user when collecting this input.

SetLabel(ICharSequence)

Set a label to be displayed to the user when collecting this input.

[Android.Runtime.Register("setLabel", "(Ljava/lang/CharSequence;)Landroid/app/RemoteInput$Builder;", "")]
public Android.App.RemoteInput.Builder SetLabel(Java.Lang.ICharSequence? label);
[<Android.Runtime.Register("setLabel", "(Ljava/lang/CharSequence;)Landroid/app/RemoteInput$Builder;", "")>]
member this.SetLabel : Java.Lang.ICharSequence -> Android.App.RemoteInput.Builder

Parameters

label
ICharSequence

CharSequence: The label to show to users when they input a response. This value may be null.

Returns

this object for method chaining. This value cannot be null.

Attributes

Remarks

Set a label to be displayed to the user when collecting this input.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.RemoteInput.Builder.setLabel.

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

SetLabel(String)

Set a label to be displayed to the user when collecting this input.

public Android.App.RemoteInput.Builder SetLabel(string? label);
member this.SetLabel : string -> Android.App.RemoteInput.Builder

Parameters

label
String

CharSequence: The label to show to users when they input a response. This value may be null.

Returns

this object for method chaining. This value cannot be null.

Remarks

Set a label to be displayed to the user when collecting this input.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.RemoteInput.Builder.setLabel.

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