Builder

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

Parameters

context
notificationId

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

channelId

The id of the notification channel of an existing notification channel or of the channel that should be automatically created. In the latter case, setChannelNameResourceId(int) needs to be called as well.