java.lang.Object | ||
↳ | com.urbanairship.push.notifications.NotificationFactory | |
↳ | com.urbanairship.push.notifications.DefaultNotificationFactory |
This class is deprecated.
Use AirshipNotificationProvider
instead.
The default notification factory.
Notifications generated by this factory use the standard Android notification layout and defaults to the BigTextStyle.
To customize the factory, override extendBuilder(NotificationCompat.Builder, PushMessage, int)
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultNotificationFactory(Context context)
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
final Notification |
createNotification(PushMessage message, int notificationId)
Creates a
Notification for an incoming push message. | ||||||||||
NotificationCompat.Builder |
extendBuilder(NotificationCompat.Builder builder, PushMessage message, int notificationId)
Called to apply any final overrides to the builder before the notification is built.
| ||||||||||
static DefaultNotificationFactory |
newFactory(Context context, AirshipConfigOptions options)
Creates the default notification factory with settings applied from AirshipConfig options.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default constructor.
context | The application context |
---|
Creates a Notification
for an incoming push message.
message | The push message. |
---|---|
notificationId | The notification ID. |
null
if no notification is desired.
Called to apply any final overrides to the builder before the notification is built.
builder | The notification builder. |
---|---|
message | The push message. |
notificationId | The notification ID. |
Creates the default notification factory with settings applied from AirshipConfig options.
context | The application context. |
---|---|
options | The airship config options. |