Notification.SetLatestEventInfo Method

Definition

Overloads

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 context for your application / activity.

contentTitle
ICharSequence

The title that goes in the expanded entry.

contentText
ICharSequence

The text that goes in the expanded entry.

contentIntent
PendingIntent

The intent to launch when the user clicks the expanded notification. If this is an activity, it must include the android.content.Intent#FLAG_ACTIVITY_NEW_TASK flag, which requires that you take care of task management as described in the Tasks and Back Stack document.

Attributes

Remarks

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

Uses the #icon and #when fields to set the icon and time fields in the view.

This member is deprecated. Use Builder instead.

Java documentation for android.app.Notification.setLatestEventInfo(android.content.Context, java.lang.CharSequence, java.lang.CharSequence, android.app.PendingIntent).

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 for your application / activity.

contentTitle
String

The title that goes in the expanded entry.

contentText
String

The text that goes in the expanded entry.

contentIntent
PendingIntent

The intent to launch when the user clicks the expanded notification. If this is an activity, it must include the android.content.Intent#FLAG_ACTIVITY_NEW_TASK flag, which requires that you take care of task management as described in the Tasks and Back Stack document.

Attributes

Remarks

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

Uses the #icon and #when fields to set the icon and time fields in the view.

This member is deprecated. Use Builder instead.

Java documentation for android.app.Notification.setLatestEventInfo(android.content.Context, java.lang.CharSequence, java.lang.CharSequence, android.app.PendingIntent).

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