Notification.Builder.SetContentText 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 |
|---|---|
| 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
CharSequence
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
Remarks
Set the second line of text in the platform notification template.
Android reference for android.app.Notification.Builder.setContentText.
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
CharSequence
Returns
This Android.App.Notification.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Set the second line of text in the platform notification template.
Android reference for android.app.Notification.Builder.setContentText.
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.