Language

Notification.MessagingStyle.SetConversationTitle Method

Definition

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. When this style is attached to a builder whose application targets a version less than Build.VERSION_CODES.P, a non-null conversation title makes isGroupConversation() return true, and a null title makes it return false. In other cases, 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. When this style is attached to a builder whose application targets a version less than Build.VERSION_CODES.P, a non-null conversation title makes isGroupConversation() return true, and a null title makes it return false. In other cases, 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