Package com.aurelienpierre.sioul
Class Channels
java.lang.Object
com.aurelienpierre.sioul.Channels
Sioul's notification channels, every one made here: without a badge on
Sioul's icon, neither the launcher's dot nor a count (docs/design.md: no
badges, no counts). Android keeps a channel's badge as the channel was
first made, and takes no change of it afterwards: a channel an older Sioul
made with its badge keeps it until you switch it off in Android's settings
(Sioul, Notifications, its category).
Checked on a JVM (android/jvm-checks/ChannelsCheck.java): no other place
makes a channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static NotificationChannelquiet(String id, CharSequence name, int importance) A channel to hand to NotificationManager.createNotificationChannel, its badge off; the rest (sound, vibration, do-not-disturb) set by the caller.
-
Constructor Details
-
Channels
private Channels()
-
-
Method Details
-
quiet
A channel to hand to NotificationManager.createNotificationChannel, its badge off; the rest (sound, vibration, do-not-disturb) set by the caller.- Parameters:
id- the channel's id, kept for goodname- its name, as Android's settings show itimportance- NotificationManager's importance- Returns:
- the channel, not yet made
-