語言

Notification.MessagingStyle 建構函式

定義

多載

名稱 Description
Notification.MessagingStyle(Person)
Notification.MessagingStyle(ICharSequence)

此構造器已被棄用。

Notification.MessagingStyle(String)

此構造器已被棄用。

Notification.MessagingStyle(IntPtr, JniHandleOwnership)

初始化現有 Java 原生介面物件的受管理表示。

Notification.MessagingStyle(Person)

[Android.Runtime.Register(".ctor", "(Landroid/app/Person;)V", "", ApiSince=28)]
public MessagingStyle(Android.App.Person user);
[<Android.Runtime.Register(".ctor", "(Landroid/app/Person;)V", "", ApiSince=28)>]
new Android.App.Notification.MessagingStyle : Android.App.Person -> Android.App.Notification.MessagingStyle

參數

user
Person

人物:必填 - 使用者發送訊息時顯示的人物。 任何以 addMessage(Notification.MessageagingStyle.Message) 新增且沒有 Person 關聯的訊息,都會顯示為該使用者發送的訊息。 使用者也必須擁有有效的名稱,這在 Android Build.VERSION_CODES.P 起被強制執行。 這個值不可能為零值。

屬性

備註

Android 參考資料。android.app.Notification.MessagingStyle.MessagingStyle

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Notification.MessagingStyle(ICharSequence)

此構造器已被棄用。

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)]
public MessagingStyle(Java.Lang.ICharSequence userDisplayName);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)>]
new Android.App.Notification.MessagingStyle : Java.Lang.ICharSequence -> Android.App.Notification.MessagingStyle

參數

userDisplayName
ICharSequence

CharSequence: Required-使用者在發文應用程式之前回覆的名稱,會在訊息實際發送後重新發布該通知,並在 addMessage(Notification.MessageagingStyle.Message) 中新增的先前訊息中重新發布該通知。此值不能為空。

屬性

備註

此構造器已被棄用。 使用 MessageagingStyle(Person)

Android 參考資料。android.app.Notification.MessagingStyle.MessagingStyle

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Notification.MessagingStyle(String)

此構造器已被棄用。

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)]
public MessagingStyle(string userDisplayName);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "", ApiSince=24)>]
new Android.App.Notification.MessagingStyle : string -> Android.App.Notification.MessagingStyle

參數

userDisplayName
String

CharSequence: Required-使用者在發文應用程式之前回覆的名稱,會在訊息實際發送後重新發布該通知,並在 addMessage(Notification.MessageagingStyle.Message) 中新增的先前訊息中重新發布該通知。此值不能為空。

屬性

備註

此構造器已被棄用。 使用 MessageagingStyle(Person)

Android 參考資料。android.app.Notification.MessagingStyle.MessagingStyle

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Notification.MessagingStyle(IntPtr, JniHandleOwnership)

初始化現有 Java 原生介面物件的受管理表示。

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

參數

javaReference
IntPtr

nativeint

Java 原生介面物件參考。

transfer
JniHandleOwnership

所有權轉移應用於 Java 原生介面物件參考。

備註

當 .NET 為 Android 綁定執行時建立一個受管理的 Java 物件時,會呼叫這個建構子。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於