public interface ApnsClient
| Modifier and Type | Method and Description |
|---|---|
okhttp3.OkHttpClient |
getHttpClient()
Returns the underlying OkHttpClient instance.
|
boolean |
isSynchronous()
Checks whether the client supports synchronous operations.
|
NotificationResponse |
push(Notification notification)
Sends a notification synchronously to the Apple Push Notification Service.
|
void |
push(Notification notification,
NotificationResponseListener listener)
Sends a notification asynchronously to the Apple Push Notification Service.
|
boolean isSynchronous()
This is specified when building the client using
void push(Notification notification, NotificationResponseListener listener)
notification - The notification built using
Notification.Builderlistener - The listener to be called after the request is completeNotificationResponse push(Notification notification)
notification - The notification built using
Notification.Builderokhttp3.OkHttpClient getHttpClient()
Copyright © 2020. All Rights Reserved.