public class SmsCbEtwsInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<SmsCbEtwsInfo> |
CREATOR
Creator for unparcelling objects.
|
static int |
ETWS_WARNING_TYPE_EARTHQUAKE
ETWS warning type for earthquake.
|
static int |
ETWS_WARNING_TYPE_EARTHQUAKE_AND_TSUNAMI
ETWS warning type for earthquake and tsunami.
|
static int |
ETWS_WARNING_TYPE_OTHER_EMERGENCY
ETWS warning type for other emergency types.
|
static int |
ETWS_WARNING_TYPE_TEST_MESSAGE
ETWS warning type for test messages.
|
static int |
ETWS_WARNING_TYPE_TSUNAMI
ETWS warning type for tsunami.
|
static int |
ETWS_WARNING_TYPE_UNKNOWN
Unknown ETWS warning type.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SmsCbEtwsInfo(int warningType,
boolean emergencyUserAlert,
boolean activatePopup,
byte[] warningSecurityInformation)
Create a new SmsCbEtwsInfo object with the specified values.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in the marshalled representation.
|
byte[] |
getPrimaryNotificationSignature()
Returns the digital signature (GSM primary notifications only).
|
long |
getPrimaryNotificationTimestamp()
Returns the Warning-Security-Information timestamp (GSM primary notifications only).
|
int |
getWarningType()
Returns the ETWS warning type.
|
boolean |
isEmergencyUserAlert()
Returns the ETWS emergency user alert flag.
|
boolean |
isPopupAlert()
Returns the ETWS activate popup flag.
|
String |
toString()
Returns a string containing a concise, human-readable description of this
object.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object into a Parcel.
|
public static final int ETWS_WARNING_TYPE_EARTHQUAKE
public static final int ETWS_WARNING_TYPE_TSUNAMI
public static final int ETWS_WARNING_TYPE_EARTHQUAKE_AND_TSUNAMI
public static final int ETWS_WARNING_TYPE_TEST_MESSAGE
public static final int ETWS_WARNING_TYPE_OTHER_EMERGENCY
public static final int ETWS_WARNING_TYPE_UNKNOWN
public static final Parcelable.Creator<SmsCbEtwsInfo> CREATOR
public SmsCbEtwsInfo(int warningType, boolean emergencyUserAlert, boolean activatePopup, byte[] warningSecurityInformation)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written (ignored).public int getWarningType()
ETWS_WARNING_TYPE_EARTHQUAKE
public boolean isEmergencyUserAlert()
public boolean isPopupAlert()
public long getPrimaryNotificationTimestamp()
public byte[] getPrimaryNotificationSignature()
public String toString()
Object
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
public int describeContents()
describeContents
in interface Parcelable