java.lang.Object | |||
↳ | com.urbanairship.push.notifications.NotificationFactory | ||
↳ | com.urbanairship.push.notifications.DefaultNotificationFactory | ||
↳ | com.urbanairship.push.notifications.SystemNotificationFactory |
Notification factory that creates notifications with no default styles or fallback layouts.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SystemNotificationFactory(Context context)
System notification constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Notification |
createNotification(PushMessage message, int notificationId)
Creates a
Notification for an incoming push message. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
System notification constructor.
context | The application context. |
---|
Creates a Notification
for an incoming push message.
BaseIntentReceiver
. When the notification is opened
it will call onNotificationOpened(Context, PushMessage, int)
giving the application a chance to handle the notification open. If the broadcast receiver is not registered,
or false
is returned, an open will be handled by either starting the launcher activity or
by sending the notification's content intent if it is present.message | The push message. |
---|---|
notificationId | The notification ID. |
null
if no notification is desired.