public class ParcelableNotification
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_CONFIGURATION_ADDED
This action shows that a particular set of configurations. has been
added.
|
static int |
ACTION_CONFIGURATION_REMOVED
The action indicates that a particular set of configurations has been
removed.
|
static int |
ACTION_CONFIGURATION_STARTED
This action indicates that a particular set of configurations has been
started.
|
static int |
ACTION_CONFIGURATION_STOPPED
This action indicates that a particular set of configurations has been
stopped.
|
static android.os.Parcelable.Creator<ParcelableNotification> |
CREATOR
Creator class for the notifications.
|
Constructor and Description |
---|
ParcelableNotification(long time,
int action,
java.util.List<java.lang.String> configurations)
Creates a new parcel with the specified time, action and
set of affected configurations.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describes the contents of the parcelable with a bitmask.
|
int |
getAction()
Returns the action indicated by the notification.
|
java.util.List<java.lang.String> |
getConfigurations()
Returns the set of configuration names of configurations
that are affected by the notification.
|
long |
getTime()
Returns the creation time of the notification.
|
void |
writeToParcel(android.os.Parcel parcel,
int flags)
Writes the contents of the system notification into the parcel.
|
public static final android.os.Parcelable.Creator<ParcelableNotification> CREATOR
public static final int ACTION_CONFIGURATION_ADDED
public static final int ACTION_CONFIGURATION_REMOVED
public static final int ACTION_CONFIGURATION_STARTED
public static final int ACTION_CONFIGURATION_STOPPED
public ParcelableNotification(long time, int action, java.util.List<java.lang.String> configurations)
time
- The system time at which the notification has been created.action
- The action indicated by the notification. This will be
one of the action constants defined in this class.configurations
- The list of affected configuration names.public long getTime()
public int getAction()
public java.util.List<java.lang.String> getConfigurations()
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable
parcel
- The parcel to write to.flags
- Special flags for deserialization. Ignored in this implementation.