Sdílet prostřednictvím


Notification.Builder.SetContentText Method

Definition

Overloads

SetContentText(String)

Set the second line of text in the platform notification template.

SetContentText(ICharSequence)

Set the second line of text in the platform notification template.

SetContentText(String)

Set the second line of text in the platform notification template.

public Android.App.Notification.Builder SetContentText (string? text);
member this.SetContentText : string -> Android.App.Notification.Builder

Parameters

text
String

The line of text to use.

Returns

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.

Applies to

SetContentText(ICharSequence)

Set the second line of text in the platform notification template.

[Android.Runtime.Register("setContentText", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetContentText_Ljava_lang_CharSequence_Handler")]
public virtual Android.App.Notification.Builder SetContentText (Java.Lang.ICharSequence? text);
[<Android.Runtime.Register("setContentText", "(Ljava/lang/CharSequence;)Landroid/app/Notification$Builder;", "GetSetContentText_Ljava_lang_CharSequence_Handler")>]
abstract member SetContentText : Java.Lang.ICharSequence -> Android.App.Notification.Builder
override this.SetContentText : Java.Lang.ICharSequence -> Android.App.Notification.Builder

Parameters

text
ICharSequence

The line of text to use.

Returns

Attributes

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.

Applies to