Notification.MessagingStyle.SetConversationTitle メソッド

定義

オーバーロード

名前 説明
SetConversationTitle(ICharSequence)

この会話に表示するタイトルを設定します。

SetConversationTitle(String)

この会話に表示するタイトルを設定します。

SetConversationTitle(ICharSequence)

この会話に表示するタイトルを設定します。

[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

パラメーター

conversationTitle
ICharSequence

CharSequence: この会話に対して表示されるタイトル。 この値は null である可能性があります。

返品

メソッドチェーン用のこのオブジェクト

属性

注釈

この会話に表示するタイトルを設定します。 null に設定できます。 Build.VERSION_CODES以降。R では、Notification.Builder.setShortcutId(String) を使用して有効な shortcutId が追加された場合、この会話タイトルは無視されます。 この場合、ShortcutInfo.getLongLabel() (または、存在しない場合は ShortcutInfo.getShortLabel()) が会話のタイトルとして表示されます。 この API の動作は、SDK バージョン Build.VERSION_CODES.P で変更されました。 アプリケーションのターゲット バージョンがBuild.VERSION_CODES未満の場合。P、会話タイトルを null 以外の値に設定すると、isGroupConversation() は true を返し、null を渡すと false が返されます。 Build.VERSION_CODES。P 以降では、setGroupConversation(boolean) を使用してグループ会話の状態を設定します。

android.app.Notification.MessagingStyle.setConversationTitleの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

SetConversationTitle(String)

この会話に表示するタイトルを設定します。

public Android.App.Notification.MessagingStyle? SetConversationTitle(string? conversationTitle);
member this.SetConversationTitle : string -> Android.App.Notification.MessagingStyle

パラメーター

conversationTitle
String

CharSequence: この会話に対して表示されるタイトル。 この値は null である可能性があります。

返品

メソッドチェーン用のこのオブジェクト

注釈

この会話に表示するタイトルを設定します。 null に設定できます。 Build.VERSION_CODES以降。R では、Notification.Builder.setShortcutId(String) を使用して有効な shortcutId が追加された場合、この会話タイトルは無視されます。 この場合、ShortcutInfo.getLongLabel() (または、存在しない場合は ShortcutInfo.getShortLabel()) が会話のタイトルとして表示されます。 この API の動作は、SDK バージョン Build.VERSION_CODES.P で変更されました。 アプリケーションのターゲット バージョンがBuild.VERSION_CODES未満の場合。P、会話タイトルを null 以外の値に設定すると、isGroupConversation() は true を返し、null を渡すと false が返されます。 Build.VERSION_CODES。P 以降では、setGroupConversation(boolean) を使用してグループ会話の状態を設定します。

android.app.Notification.MessagingStyle.setConversationTitleの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象