Notification.Builder.SetChannelId(String) Method

Definition

Specifies the channel the notification should be delivered on.

[Android.Runtime.Register("setChannelId", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetChannelId_Ljava_lang_String_Handler", ApiSince=26)]
public virtual Android.App.Notification.Builder SetChannelId(string? channelId);
[<Android.Runtime.Register("setChannelId", "(Ljava/lang/String;)Landroid/app/Notification$Builder;", "GetSetChannelId_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member SetChannelId : string -> Android.App.Notification.Builder
override this.SetChannelId : string -> Android.App.Notification.Builder

Parameters

channelId
String

String

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Specifies the channel the notification should be delivered on.

Android reference for android.app.Notification.Builder.setChannelId.

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