Cancel notification

Report a typo

What should you write to cancel this notification?

val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
notificationManager.notify(5, notificationBuilder.build())

...

fun cancelNotification() {
    //your code here
}
Enter a short text
___

Create a free account to access the full topic