Builder

constructor(context: Context, @IntRange(from = 1) notificationId: Int, channelId: String)

Parameters

context

The Context.

notificationId

The id of the notification to be posted. Must be greater than 0.

channelId

The id of the notification channel. This can be an existing channel or a new one to be created. If creating a new channel, ensure to call setChannelNameResourceId as well.