Notification.SetLatestEventInfo Notification.SetLatestEventInfo Method

Definition

Overloads

SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent) SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent)

P:Android.App.Notification.ContentView)

SetLatestEventInfo(Context, String, String, PendingIntent) SetLatestEventInfo(Context, String, String, PendingIntent)

Sets the ContentView property 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.

SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent) SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent)

Warning

This API is now obsolete.

P:Android.App.Notification.ContentView)

[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);
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 Context

The context for your application or activity.

contentTitle
ICharSequence ICharSequence

The title that goes in the expanded entry.

contentText
ICharSequence ICharSequence

The text that goes in the expanded entry.

contentIntent
PendingIntent PendingIntent

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

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.

SetLatestEventInfo(Context, String, String, PendingIntent) SetLatestEventInfo(Context, String, String, PendingIntent)

Warning

This API is now obsolete.

Sets the ContentView property 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.

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

Parameters

context
Context Context

The context for your application / activity.

contentTitle
String String

The title that goes in the expanded entry.

contentText
String String

The text that goes in the expanded entry.

contentIntent
PendingIntent PendingIntent

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

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