Share via


NotificationChannel.SetConversationId(String, String) Method

Definition

Sets this channel as being converastion-centric.

[Android.Runtime.Register("setConversationId", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=30)]
public void SetConversationId (string parentChannelId, string conversationId);
[<Android.Runtime.Register("setConversationId", "(Ljava/lang/String;Ljava/lang/String;)V", "", ApiSince=30)>]
member this.SetConversationId : string * string -> unit

Parameters

parentChannelId
String

The #getId() id} of the generic channel that notifications of this type would be posted to in absence of a specific conversation id. For example, if this channel represents 'Messages from Person A', the parent channel would be 'Messages.'

conversationId
String

The ShortcutInfo#getId() of the shortcut representing this channel's conversation.

Attributes

Remarks

Sets this channel as being converastion-centric. Different settings and functionality may be exposed for conversation-centric channels.

Java documentation for android.app.NotificationChannel.setConversationId(java.lang.String, java.lang.String).

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