|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApnsDelegate
A delegate that gets notified of the status of notification delivery to the Apple Server. The delegate doesn't get notified when the notification actually arrives at the phone.
| Field Summary | |
|---|---|
static ApnsDelegate |
EMPTY
A NOOP delegate that does nothing! |
| Method Summary | |
|---|---|
void |
cacheLengthExceeded(int newCacheLength)
|
void |
connectionClosed(DeliveryError e,
int messageIdentifier)
|
void |
messageSendFailed(ApnsNotification message,
Throwable e)
Called when the delivery of the message failed for any reason If message is null, then your notification has been rejected by Apple but it has been removed from the cache so it is not possible to identify which notification caused the error. |
void |
messageSent(ApnsNotification message,
boolean resent)
Called when message was successfully sent to the Apple servers |
void |
notificationsResent(int resendCount)
|
| Field Detail |
|---|
static final ApnsDelegate EMPTY
| Method Detail |
|---|
void messageSent(ApnsNotification message,
boolean resent)
message - the notification that was sentresent - whether the notfication was resent after an error
void messageSendFailed(ApnsNotification message,
Throwable e)
message - the notification that was attempted to be sente - the cause and description of the failure
void connectionClosed(DeliveryError e,
int messageIdentifier)
void cacheLengthExceeded(int newCacheLength)
void notificationsResent(int resendCount)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||