-
-
Save hitherejoe/bf8095cbc7e047b3f1279b957a95a3b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NotificationManager notificationManager = | |
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); | |
List<NotificationChannelGroup> notificationChannelGroups = new ArrayList(); | |
notificationChannelGroups.add(new NotificationChannelGroup("group_one", "Group One")); | |
notificationChannelGroups.add(new NotificationChannelGroup("group_two", "Group Two")); | |
notificationChannelGroups.add(new NotificationChannelGroup("group_three", "Group Three")); | |
notificationManager.createNotificationChannelGroup(notificationChannelGroups); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The method call should be:
notificationManager.createNotificationChannelGroups(notificationChannelGroups);