Class WonderPushChannelGroup

java.lang.Object
com.wonderpush.sdk.WonderPushChannelGroup
All Implemented Interfaces:
Cloneable

public class WonderPushChannelGroup extends Object implements Cloneable
A grouping of related notification channels. e.g., channels that all belong to a single account.

This class mimicks the NotificationChannelGroup class to permit exposing its benefits to devices prior to Android O.

See Also:
  • NotificationChannelGroup
  • Constructor Details

    • WonderPushChannelGroup

      public WonderPushChannelGroup(@NonNull String id)
      Creates a notification channel group.
      Parameters:
      id - The id of the group. Must be unique per package. the value may be truncated if it is too long.
      See Also:
      • NotificationChannelGroup(java.lang.String, java.lang.CharSequence)
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Throws:
      CloneNotSupportedException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getId

      public String getId()
      Returns the id of this channel group.
      Returns:
      The id of this channel group.
      See Also:
      • NotificationChannelGroup.getId()
    • getName

      public String getName()
      Returns the user visible name of this channel group.
      Returns:
      The user visible name of this channel group.
      See Also:
      • NotificationChannelGroup.getName()
    • setName

      public WonderPushChannelGroup setName(String name)
      Sets the user visible name of this channel group.
      Parameters:
      name - The user visible name of the group. The recommended maximum length is 40 characters; the value may be truncated if it is too long.
      Returns:
      The channel group object for chaining setters.
      See Also:
      • NotificationChannelGroup.getName()