Notification.MessagingStyle.SetConversationTitle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| SetConversationTitle(ICharSequence) |
Sets the title to be displayed on this conversation. |
| SetConversationTitle(String) |
Sets the title to be displayed on this conversation. |
SetConversationTitle(ICharSequence)
Sets the title to be displayed on this conversation.
[Android.Runtime.Register("setConversationTitle", "(Ljava/lang/CharSequence;)Landroid/app/Notification$MessagingStyle;", "GetSetConversationTitle_Ljava_lang_CharSequence_Handler", ApiSince=24)]
public virtual Android.App.Notification.MessagingStyle? SetConversationTitle(Java.Lang.ICharSequence? conversationTitle);
[<Android.Runtime.Register("setConversationTitle", "(Ljava/lang/CharSequence;)Landroid/app/Notification$MessagingStyle;", "GetSetConversationTitle_Ljava_lang_CharSequence_Handler", ApiSince=24)>]
abstract member SetConversationTitle : Java.Lang.ICharSequence -> Android.App.Notification.MessagingStyle
override this.SetConversationTitle : Java.Lang.ICharSequence -> Android.App.Notification.MessagingStyle
Parameters
- conversationTitle
- ICharSequence
CharSequence: title displayed for this conversation. This value may be null.
Returns
this object for method chaining
- Attributes
Remarks
Sets the title to be displayed on this conversation. May be set to null. Starting in Build.VERSION_CODES.R, this conversation title will be ignored if a valid shortcutId is added via Notification.Builder.setShortcutId(String). In this case, ShortcutInfo.getLongLabel() (or, if missing, ShortcutInfo.getShortLabel()) will be shown as the conversation title instead. This API's behavior was changed in SDK version Build.VERSION_CODES.P. If your application's target version is less than Build.VERSION_CODES.P, setting a conversation title to a non-null value will make isGroupConversation() return true and passing null will make it return false. In Build.VERSION_CODES.P and beyond, use setGroupConversation(boolean) to set group conversation status.
Android reference for android.app.Notification.MessagingStyle.setConversationTitle.
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
SetConversationTitle(String)
Sets the title to be displayed on this conversation.
public Android.App.Notification.MessagingStyle? SetConversationTitle(string? conversationTitle);
member this.SetConversationTitle : string -> Android.App.Notification.MessagingStyle
Parameters
- conversationTitle
- String
CharSequence: title displayed for this conversation. This value may be null.
Returns
this object for method chaining
Remarks
Sets the title to be displayed on this conversation. May be set to null. Starting in Build.VERSION_CODES.R, this conversation title will be ignored if a valid shortcutId is added via Notification.Builder.setShortcutId(String). In this case, ShortcutInfo.getLongLabel() (or, if missing, ShortcutInfo.getShortLabel()) will be shown as the conversation title instead. This API's behavior was changed in SDK version Build.VERSION_CODES.P. If your application's target version is less than Build.VERSION_CODES.P, setting a conversation title to a non-null value will make isGroupConversation() return true and passing null will make it return false. In Build.VERSION_CODES.P and beyond, use setGroupConversation(boolean) to set group conversation status.
Android reference for android.app.Notification.MessagingStyle.setConversationTitle.
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.