javapns.notification
Class PushNotificationBigPayload

java.lang.Object
  extended by javapns.notification.Payload
      extended by javapns.notification.PushNotificationPayload
          extended by javapns.notification.PushNotificationBigPayload

public class PushNotificationBigPayload
extends PushNotificationPayload


Field Summary
 
Fields inherited from class javapns.notification.Payload
logger
 
Constructor Summary
PushNotificationBigPayload()
           
PushNotificationBigPayload(String rawJSON)
           
 
Method Summary
static PushNotificationBigPayload complex()
           
static PushNotificationBigPayload fromJSON(String rawJSON)
           
 int getMaximumPayloadSize()
          Return the maximum payload size in bytes.
 
Methods inherited from class javapns.notification.PushNotificationPayload
addAlert, addBadge, addCategory, addCustomAlertActionLocKey, addCustomAlertBody, addCustomAlertLaunchImage, addCustomAlertLocArgs, addCustomAlertLocKey, addCustomAlertSubtitle, addCustomAlertTitle, addCustomAlertTitleLocArgs, addCustomAlertTitleLocKey, addSound, alert, badge, combined, setContentAvailable, setMutableContent, sound, test
 
Methods inherited from class javapns.notification.Payload
addCustomDictionary, addCustomDictionary, addCustomDictionary, addCustomDictionary, asSimulationOnly, estimatePayloadSizeAfterAdding, getCharacterEncoding, getExpiry, getPayload, getPayloadAsBytes, getPayloadSize, getPreSendConfiguration, isEstimatedPayloadSizeAllowedAfterAdding, isPayloadSizeEstimatedWhenAdding, put, remove, setCharacterEncoding, setExpiry, setPayloadSizeEstimatedWhenAdding, setPreSendConfiguration, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PushNotificationBigPayload

public PushNotificationBigPayload()

PushNotificationBigPayload

public PushNotificationBigPayload(String rawJSON)
                           throws JSONException
Throws:
JSONException
Method Detail

getMaximumPayloadSize

public int getMaximumPayloadSize()
Return the maximum payload size in bytes. For APNS payloads, since iOS8, this method returns 2048.

Overrides:
getMaximumPayloadSize in class PushNotificationPayload
Returns:
the maximum payload size in bytes (2048)

complex

public static PushNotificationBigPayload complex()

fromJSON

public static PushNotificationBigPayload fromJSON(String rawJSON)
                                           throws JSONException
Throws:
JSONException


Copyright © 2016. All Rights Reserved.