use of androidx.core.app.NotificationChannelCompat in project AntennaPod by AntennaPod.
the class NotificationUtils method createChannels.
public static void createChannels(final Context context) {
final NotificationManagerCompat mNotificationManager = NotificationManagerCompat.from(context);
final List<NotificationChannelGroupCompat> channelGroups = Arrays.asList(createGroupErrors(context), createGroupNews(context));
mNotificationManager.createNotificationChannelGroupsCompat(channelGroups);
final List<NotificationChannelCompat> channels = Arrays.asList(createChannelUserAction(context), createChannelDownloading(context), createChannelPlaying(context), createChannelError(context), createChannelSyncError(context), createChannelAutoDownload(context), createChannelEpisodeNotification(context));
mNotificationManager.createNotificationChannelsCompat(channels);
}
Aggregations