Notification.SetLatestEventInfo メソッド

定義

オーバーロード

SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent)
古い.

フィールドを標準の #contentView "最新イベント" レイアウトのビューに設定します。

SetLatestEventInfo(Context, String, String, PendingIntent)
古い.

フィールドを標準の #contentView "最新イベント" レイアウトのビューに設定します。

SetLatestEventInfo(Context, ICharSequence, ICharSequence, PendingIntent)

注意事項

deprecated

フィールドを標準の #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);
[<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

パラメーター

context
Context

アプリケーション/アクティビティのコンテキスト。

contentTitle
ICharSequence

展開されたエントリに含まれるタイトル。

contentText
ICharSequence

展開されたエントリに入るテキスト。

contentIntent
PendingIntent

ユーザーが展開された通知をクリックしたときに起動する意図。 アクティビティの場合は、 フラグを android.content.Intent#FLAG_ACTIVITY_NEW_TASK 含める必要があります。このフラグを使用するには、 タスクとバック スタック に関するドキュメントで説明されているように、タスク管理を行う必要があります。

属性

注釈

フィールドを標準の #contentView "最新イベント" レイアウトのビューに設定します。

フィールドと #when フィールドを#icon使用して、ビューのアイコンフィールドと時刻フィールドを設定します。

このメンバーは非推奨とされます。 代わりに、Builder を使用してください。

android.app.Notification.setLatestEventInfo(android.content.Context, java.lang.CharSequence, java.lang.CharSequence, android.app.PendingIntent)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象

SetLatestEventInfo(Context, String, String, PendingIntent)

注意事項

deprecated

フィールドを標準の #contentView "最新イベント" レイアウトのビューに設定します。

[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

パラメーター

context
Context

アプリケーション/アクティビティのコンテキスト。

contentTitle
String

展開されたエントリに含まれるタイトル。

contentText
String

展開されたエントリに入るテキスト。

contentIntent
PendingIntent

ユーザーが展開された通知をクリックしたときに起動する意図。 アクティビティの場合は、 フラグを android.content.Intent#FLAG_ACTIVITY_NEW_TASK 含める必要があります。このフラグを使用するには、 タスクとバック スタック に関するドキュメントで説明されているように、タスク管理を行う必要があります。

属性

注釈

フィールドを標準の #contentView "最新イベント" レイアウトのビューに設定します。

フィールドと #when フィールドを#icon使用して、ビューのアイコンフィールドと時刻フィールドを設定します。

このメンバーは非推奨とされます。 代わりに、Builder を使用してください。

android.app.Notification.setLatestEventInfo(android.content.Context, java.lang.CharSequence, java.lang.CharSequence, android.app.PendingIntent)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象