java.lang.Object | |
↳ | com.urbanairship.push.notifications.NotificationChannelRegistry |
Compatibility class for registering notification channels.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
createDeferredNotificationChannel(NotificationChannelCompat channelCompat)
Like
createNotificationChannel(NotificationChannelCompat) , but on Android O and above,
the channel will not be created with the NotificationManager until it is accessed with
getNotificationChannel(String) . | ||||||||||
void |
createNotificationChannel(NotificationChannelCompat channelCompat)
Adds a notification channel and saves it to disk.
| ||||||||||
void |
deleteNotificationChannel(String id)
Deletes a notification channel, by identifier.
| ||||||||||
PendingResult<NotificationChannelCompat> |
getNotificationChannel(String id)
Gets a notification channel by identifier.
| ||||||||||
NotificationChannelCompat |
getNotificationChannelSync(String id)
Gets a notification channel by identifier.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Like createNotificationChannel(NotificationChannelCompat)
, but on Android O and above,
the channel will not be created with the NotificationManager until it is accessed with
getNotificationChannel(String)
.
channelCompat | A NotificationChannelCompat. |
---|
Adds a notification channel and saves it to disk. This method is a no-op if a channel is already created with the same identifier. On Android O and above, this method will also create an equivalent NotificationChannel with NotificationManager.
channelCompat | A NotificationChannelCompat. |
---|
Deletes a notification channel, by identifier. On Android O and above, this method will also delete the equivalent NotificationChannel on NotificationManager.
id | The notification channel identifier. |
---|
Gets a notification channel by identifier.
id | The notification channel identifier. |
---|
Gets a notification channel by identifier.
id | The notification channel identifier. |
---|