Language

Notification.SetLatestEventInfo Method

Definition

Overloads

Name Description
SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent)
Obsolete.

Sets the #contentView field to be a view with the standard "Latest Event" layout.

SetLatestEventInfo(Context, String, String, PendingIntent)
Obsolete.

Sets the #contentView field to be a view with the standard "Latest Event" layout.

SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent)

Caution

deprecated

Sets the #contentView field to be a view with the standard "Latest Event" layout.

[Android.Runtime.Register("setLatestEventInfo", "(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "GetSetLatestEventInfo_Landroid_content_Context_Ljava_lang_CharSequence_Ljava_lang_CharSequence_Landroid_app_PendingIntent_Handler")]
[System.Obsolete("deprecated")]
public virtual void SetLatestEventInfo(Android.Content.Context? context, Java.Lang.ICharSequence? contentTitle, Java.Lang.ICharSequence? contentText, Android.App.PendingIntent? contentIntent);
[<Android.Runtime.Register("setLatestEventInfo", "(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V", "GetSetLatestEventInfo_Landroid_content_Context_Ljava_lang_CharSequence_Ljava_lang_CharSequence_Landroid_app_PendingIntent_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetLatestEventInfo : Android.Content.Context * Java.Lang.ICharSequence * Java.Lang.ICharSequence * Android.App.PendingIntent -> unit
override this.SetLatestEventInfo : Android.Content.Context * Java.Lang.ICharSequence * Java.Lang.ICharSequence * Android.App.PendingIntent -> unit

Parameters

context
Context

The application or activity context used to build the notification view.

contentTitle
ICharSequence

The text assigned to the expanded entry's title.

contentText
ICharSequence

The text assigned to the expanded entry's content.

contentIntent
PendingIntent

The pending intent assigned for selection of the expanded notification.

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

SetLatestEventInfo(Context, String, String, PendingIntent)

Caution

deprecated

Sets the #contentView field to be a view with the standard "Latest Event" layout.

[System.Obsolete("deprecated")]
public void SetLatestEventInfo(Android.Content.Context? context, string? contentTitle, string? contentText, Android.App.PendingIntent? contentIntent);
[<System.Obsolete("deprecated")>]
member this.SetLatestEventInfo : Android.Content.Context * string * string * Android.App.PendingIntent -> unit

Parameters

context
Context

The context forwarded to the character-sequence overload to build the notification view.

contentTitle
String

The title string converted for the character-sequence overload.

contentText
String

The content string converted for the character-sequence overload.

contentIntent
PendingIntent

The pending intent forwarded for selection of the expanded notification.

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