Notification.MessagingStyle 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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 参考。android.app.Notification.MessagingStyle.MessagingStyle
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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。
- 特性
注解
此构造函数已弃用。 use MessagingStyle(Person)
Android 参考。android.app.Notification.MessagingStyle.MessagingStyle
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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。
- 特性
注解
此构造函数已弃用。 use MessagingStyle(Person)
Android 参考。android.app.Notification.MessagingStyle.MessagingStyle
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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 Native Interface 对象引用。
- transfer
- JniHandleOwnership
要应用于 Java Native Interface 对象引用的所有权转让。
注解
当为现有Java对象创建托管对等时,此构造函数由 Android 绑定运行时的 .NET 调用。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。