| java.lang.Object | |
| ↳ | com.urbanairship.push.notifications.NotificationResult |
Results for onCreateNotification(Context, NotificationArguments).
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| @interface | NotificationResult.Status | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | CANCEL | Indicates that a Notification was not successfully created and no work should be scheduled to retry. | |||||||||
| int | OK | Indicates that a Notification was successfully created. | |||||||||
| int | RETRY | Indicates that a Notification was not successfully created and that a job should be scheduled to retry later. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static NotificationResult |
cancel()
Creates a new result with a
CANCEL status code. | ||||||||||
| Notification |
getNotification()
Gets the Notification.
| ||||||||||
| int |
getStatus()
Gets the status.
| ||||||||||
| static NotificationResult |
notification(Notification notification)
Creates a new result with a notification and a
OK status code. | ||||||||||
| static NotificationResult |
retry()
Creates a new result with a
RETRY status code. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Indicates that a Notification was not successfully created and no work should be scheduled to retry.
Indicates that a Notification was successfully created.
Indicates that a Notification was not successfully created and that a job should be scheduled to retry later.
Creates a new result with a CANCEL status code.
Gets the status.
Creates a new result with a notification and a OK status code.
| notification | The notification. |
|---|
Creates a new result with a RETRY status code.