public boolean isBlocked(final Context context) {
		final NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
		if (nm == null || ! nm.areNotificationsEnabled()) return true;
		if (SDK_INT < O) return false;
		final NotificationChannel actual_channel = nm.getNotificationChannel(channel.name);
		return actual_channel != null && actual_channel.getImportance() == NotificationManager.IMPORTANCE_NONE;
	}
Central definition for all notification IDs, to avoid conflicts.

Created by Oasis on 2016/11/28.
shared/src/main/java/com/oasisfeng/island/notification/NotificationIds.java