Skip to content

Instantly share code, notes, and snippets.

@SubhrajyotiSen
Last active December 5, 2021 19:31
Show Gist options
  • Save SubhrajyotiSen/c43909f905e5332af2ba9655506c2481 to your computer and use it in GitHub Desktop.
Save SubhrajyotiSen/c43909f905e5332af2ba9655506c2481 to your computer and use it in GitHub Desktop.
val channel = NotificationChannelCompat.Builder(
channelId,
NotificationManagerCompat.IMPORTANCE_DEFAULT
).setName(channelName)
.build()
// manager is of type NotificationManagerCompat
manager.createNotificationChannel(channel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment