共用方式為


Notification 建構函式

定義

多載

Notification()

使用預設值建構 Notification 物件。

Notification(Parcel)

從包裹取消通知。

Notification(Int32, ICharSequence)

Notification使用具有狀態列圖示而不需要標準展開檢視的資訊來建構 物件。

Notification(Int32, String)

Notification使用具有狀態列圖示而不需要標準展開檢視的資訊來建構 物件。

Notification(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

Notification(Int32, ICharSequence, Int64)
已淘汰.

建構 Notification 物件,其中包含沒有標準展開檢視之狀態列圖示所需的資訊。

Notification(Int32, String, Int64)

建構 Notification 物件,其中包含沒有標準展開檢視之狀態列圖示所需的資訊。

Notification()

使用預設值建構 Notification 物件。

[Android.Runtime.Register(".ctor", "()V", "")]
public Notification ();
屬性

備註

使用預設值建構 Notification 物件。 您可能要考慮改用 Builder

android.app.Notification.Notification()Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Notification(Parcel)

從包裹取消通知。

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")]
public Notification (Android.OS.Parcel? parcel);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "")>]
new Android.App.Notification : Android.OS.Parcel -> Android.App.Notification

參數

parcel
Parcel

包含通知資訊的地塊。

屬性

備註

從包裹取消通知。

android.app.Notification.Notification(android.os.Parcel)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Notification(Int32, ICharSequence)

Notification使用具有狀態列圖示而不需要標準展開檢視的資訊來建構 物件。

public Notification (int icon, Java.Lang.ICharSequence tickerText);
new Android.App.Notification : int * Java.Lang.ICharSequence -> Android.App.Notification

參數

icon
Int32

要放入狀態列之圖標的資源標識碼。

tickerText
ICharSequence

通知第一次啟動時,在狀態欄中流動的文字。

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Notification(Int32, String)

Notification使用具有狀態列圖示而不需要標準展開檢視的資訊來建構 物件。

public Notification (int icon, string tickerText);
new Android.App.Notification : int * string -> Android.App.Notification

參數

icon
Int32

要放入狀態列之圖標的資源標識碼。

tickerText
String

通知第一次啟動時,在狀態欄中流動的文字。

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Notification(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

protected Notification (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Notification : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Notification

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Notification(Int32, ICharSequence, Int64)

警告

deprecated

建構 Notification 物件,其中包含沒有標準展開檢視之狀態列圖示所需的資訊。

[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;J)V", "")]
[System.Obsolete("deprecated")]
public Notification (int icon, Java.Lang.ICharSequence? tickerText, long when);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;J)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.App.Notification : int * Java.Lang.ICharSequence * int64 -> Android.App.Notification

參數

icon
Int32

要放入狀態列之圖標的資源標識碼。

tickerText
ICharSequence

通知第一次啟動時,在狀態欄中流動的文字。

when
Int64

時間欄位中要顯示的時間。 在 System.currentTimeMillis 時間基底中。

屬性

備註

建構 Notification 物件,其中包含沒有標準展開檢視之狀態列圖示所需的資訊。

已取代這個成員。 請改用 Builder

android.app.Notification.Notification(int, java.lang.CharSequence, long)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Notification(Int32, String, Int64)

建構 Notification 物件,其中包含沒有標準展開檢視之狀態列圖示所需的資訊。

[Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;J)V", "")]
public Notification (int icon, string? tickerText, long when);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/CharSequence;J)V", "")>]
new Android.App.Notification : int * string * int64 -> Android.App.Notification

參數

icon
Int32

要放入狀態列之圖標的資源標識碼。

tickerText
String

通知第一次啟動時,在狀態欄中流動的文字。

when
Int64

時間欄位中的時間, System.currentTimeMillis 時間基底。

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於