Notification.Builder.SetContentInfo Method

Definition

Overloads

Name Description
SetContentInfo(ICharSequence)

This method was deprecated in API level 24.

SetContentInfo(String)

This method was deprecated in API level 24.

SetContentInfo(ICharSequence)

This method was deprecated in API level 24.

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

Parameters

info
ICharSequence

CharSequence

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

This method was deprecated in API level 24. use setSubText(CharSequence) instead to set a text in the header. For legacy apps targeting a version below Build.VERSION_CODES.N this field will still show up, but the subtext will take precedence.

A small piece of additional information pertaining to this notification. The platform template will draw this on the last line of the notification, at the far right (to the right of a smallIcon if it has been placed there).

Android reference for android.app.Notification.Builder.setContentInfo.

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

SetContentInfo(String)

This method was deprecated in API level 24.

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

Parameters

info
String

CharSequence

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Remarks

This method was deprecated in API level 24. use setSubText(CharSequence) instead to set a text in the header. For legacy apps targeting a version below Build.VERSION_CODES.N this field will still show up, but the subtext will take precedence.

A small piece of additional information pertaining to this notification. The platform template will draw this on the last line of the notification, at the far right (to the right of a smallIcon if it has been placed there).

Android reference for android.app.Notification.Builder.setContentInfo.

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