Notification.MessagingStyle コンストラクター

定義

オーバーロード

名前 説明
Notification.MessagingStyle(Person)
Notification.MessagingStyle(ICharSequence)

このコンストラクターは非推奨です。

Notification.MessagingStyle(String)

このコンストラクターは非推奨です。

Notification.MessagingStyle(IntPtr, JniHandleOwnership)

既存の Java Native Interface オブジェクトのマネージド表現を初期化します。

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.MessagingStyle.Message) で追加されたメッセージは、このユーザーによって送信されたかのように表示されます。 また、ユーザーには有効な名前が関連付けられている必要があります。これは Android Build.VERSION_CODES.P 以降で適用されます。 この値は null にすることはできません。

属性

注釈

android.app.Notification.MessagingStyle.MessagingStyleの Android リファレンス。

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

適用対象

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: 必須 - 投稿アプリが実際に送信された後、および addMessage(Notification.MessagingStyle.Message) に追加されたユーザーによって送信された以前のメッセージで通知を再投稿する前に、ユーザーが送信した応答に表示される名前を null にすることはできません。

属性

注釈

このコンストラクターは非推奨です。 MessagingStyle(Person) を使用する

android.app.Notification.MessagingStyle.MessagingStyleの Android リファレンス。

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

適用対象

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: 必須 - 投稿アプリが実際に送信された後、および addMessage(Notification.MessagingStyle.Message) に追加されたユーザーによって送信された以前のメッセージで通知を再投稿する前に、ユーザーが送信した応答に表示される名前を null にすることはできません。

属性

注釈

このコンストラクターは非推奨です。 MessagingStyle(Person) を使用する

android.app.Notification.MessagingStyle.MessagingStyleの Android リファレンス。

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

適用対象

Notification.MessagingStyle(IntPtr, JniHandleOwnership)

既存の Java Native Interface オブジェクトのマネージド表現を初期化します。

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 Native Interface オブジェクト参照に適用する所有権の転送。

注釈

このコンストラクターは、既存のJava オブジェクトのマネージド ピアを作成するときに、Android バインド ランタイムの.NETによって呼び出されます。

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

適用対象