Class Channels

java.lang.Object
com.aurelienpierre.sioul.Channels

final class Channels extends Object
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 Details

  • Method Details

    • quiet

      static NotificationChannel quiet(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.
      Parameters:
      id - the channel's id, kept for good
      name - its name, as Android's settings show it
      importance - NotificationManager's importance
      Returns:
      the channel, not yet made