toggle menu
Airship Android SDK
androidJvm
switch theme
search in API
urbanairship-core
/
com.urbanairship.push.notifications
/
NotificationResult
Notification
Result
open
class
NotificationResult
Results for
onCreateNotification
.
Members
Types
Status
Link copied to clipboard
@
Retention
(
value
=
RetentionPolicy.SOURCE
)
annotation class
Status
Properties
CANCEL
Link copied to clipboard
val
CANCEL
:
Int
=
2
Indicates that a Notification was not successfully created and no work should be scheduled to retry.
notification
Link copied to clipboard
@get:
Nullable
val
notification
:
Notification
OK
Link copied to clipboard
val
OK
:
Int
=
0
Indicates that a Notification was successfully created.
RETRY
Link copied to clipboard
val
RETRY
:
Int
=
1
Indicates that a Notification was not successfully created and that a job should be scheduled to retry later.
status
Link copied to clipboard
val
status
:
Int
Functions
cancel
Link copied to clipboard
@
NonNull
open
fun
cancel
(
)
:
NotificationResult
Creates a new result with a
CANCEL
status code.
notification
Link copied to clipboard
@
NonNull
open
fun
notification
(
@
NonNull
notification
:
Notification
)
:
NotificationResult
Creates a new result with a notification and a
OK
status code.
retry
Link copied to clipboard
@
NonNull
open
fun
retry
(
)
:
NotificationResult
Creates a new result with a
RETRY
status code.