Partager via


Notification.MessagingStyle Constructors

Definition

Overloads

Notification.MessagingStyle(Person)
Notification.MessagingStyle(ICharSequence)

This member is deprecated.

Notification.MessagingStyle(String)
Notification.MessagingStyle(IntPtr, JniHandleOwnership)

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

Parameters

user
Person

Required - The person displayed for any messages that are sent by the user. Any messages added with #addMessage(Notification.MessagingStyle.Message) who don't have a Person associated with it will be displayed as if they were sent by this user. The user also needs to have a valid name associated with it, which is enforced starting in Android android.os.Build.VERSION_CODES#P.

Attributes

Remarks

Java documentation for android.app.Notification.MessagingStyle.Notification$MessagingStyle(android.app.Person).

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

Notification.MessagingStyle(ICharSequence)

This member is deprecated.

[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

Parameters

userDisplayName
ICharSequence

Required - the name to be displayed for any replies sent by the user before the posting app reposts the notification with those messages after they've been actually sent and in previous messages sent by the user added in #addMessage(Notification.MessagingStyle.Message)

Attributes

Remarks

This member is deprecated. use MessagingStyle(Person)

Java documentation for android.app.Notification.MessagingStyle.Notification$MessagingStyle(java.lang.CharSequence).

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

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

Parameters

userDisplayName
String
Attributes

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

Notification.MessagingStyle(IntPtr, JniHandleOwnership)

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

Parameters

javaReference
IntPtr

nativeint

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