public class AppNotification extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
String |
appEvent
The app-specific event name.
|
static Parcelable.Creator<AppNotification> |
CREATOR |
static int |
MAX_PAYLOAD_LENGTH
The maximum number of characters
|
String |
payload
Up to 4k bytes of data associated with the event.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
AppNotification(Intent intent) |
AppNotification(JSONObject json) |
AppNotification(String appEvent,
String payload) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
int |
hashCode() |
JSONObject |
toJson() |
String |
toString() |
void |
writeToParcel(Parcel parcel,
int i) |
public static final int MAX_PAYLOAD_LENGTH
public final String appEvent
public final String payload
public static final Parcelable.Creator<AppNotification> CREATOR
public AppNotification(JSONObject json) throws JSONException
JSONException
public AppNotification(Intent intent)
public JSONObject toJson()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel parcel, int i)
writeToParcel
in interface Parcelable