public class WonderPushChannelGroup
extends java.lang.Object
implements java.lang.Cloneable
BETA - This API is marked beta and may change without prior notice to reflect any changes made to the Android O APIs.
This class mimicks the android.app.android.app.NotificationChannelGroup class to permit
exposing its benefits to devices prior to Android O.
android.app.android.app.NotificationChannelGroup| Constructor and Description |
|---|
WonderPushChannelGroup(java.lang.String id)
Creates a notification channel group.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
Returns the id of this channel group.
|
java.lang.String |
getName()
Returns the user visible name of this channel group.
|
int |
hashCode() |
WonderPushChannelGroup |
setName(java.lang.String name)
Sets the user visible name of this channel group.
|
java.lang.String |
toString() |
public WonderPushChannelGroup(@NonNull
java.lang.String id)
id - The id of the group. Must be unique per package. the value may be truncated if it is too long.android.app.NotificationChannelGroup#NotificationChannelGroup(java.lang.String, java.lang.CharSequence)public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getId()
android.app.NotificationChannelGroup#getId()public java.lang.String getName()
android.app.NotificationChannelGroup#getName()public WonderPushChannelGroup setName(java.lang.String name)
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.android.app.NotificationChannelGroup#getName()