Language

Notification.MessagingStyle Constructors

Definition

Overloads

Name Description
Notification.MessagingStyle(Person)
Notification.MessagingStyle(ICharSequence)

This constructor is deprecated.

Notification.MessagingStyle(String)

This constructor is deprecated.

Notification.MessagingStyle(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

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

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 Build.VERSION_CODES.P. This value cannot be null.

Attributes

Remarks

Android reference for android.app.Notification.MessagingStyle.MessagingStyle.

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 constructor 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

CharSequence: 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) This value cannot be null.

Attributes

Remarks

This constructor is deprecated. use MessagingStyle(Person)

Android reference for android.app.Notification.MessagingStyle.MessagingStyle.

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)

This constructor is deprecated.

[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

CharSequence: 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) This value cannot be null.

Attributes

Remarks

This constructor is deprecated. use MessagingStyle(Person)

Android reference for android.app.Notification.MessagingStyle.MessagingStyle.

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)

Initializes a managed representation of an existing Java Native Interface object.

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

The Java Native Interface object reference.

transfer
JniHandleOwnership

The ownership transfer to apply to the Java Native Interface object reference.

Remarks

This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java object.

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