public interface PushNotificationsResponseListener
PushNotifications.send(Notification, PushNotificationsResponseListener)
method.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(Integer statusCode,
String responseBody,
Throwable t)
This method will be called when anything goes wrong while sending the
push notification.
|
void |
onSuccess(int statusCode,
String responseBody)
This method will be called when the push notification was successfully
sent to the IBM® Cloud Push Notification service.
|
void onSuccess(int statusCode,
String responseBody)
statusCode - the status code of the responseresponseBody - the body of the response, as a Stringvoid onFailure(Integer statusCode, String responseBody, Throwable t)
statusCode - The status code of the response. It can be null, if there was
no response.responseBody - The body of the response. It can be null, if no body was
received.t - The exception or throwable that caused the failure, or null,
if there was no Throwable.Copyright © 2018. All rights reserved.