public interface PushNotificationsResponseListener
PushNotifications.send(org.json.JSONObject, 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® Bluemix 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; can be null if there was no responseresponseBody - the body of the response; can be null if no body was receivedt - the exception or throwable that caused the failure, or null if there was no ThrowableCopyright © 2017. All rights reserved.