public class CdmaSmsCbProgramData extends Object implements Parcelable
Telephony.Sms.Intents.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED_ACTION
containing an array of these objects to update its list of cell broadcast service categories
to display.
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static int |
ALERT_OPTION_DEFAULT_ALERT
Alert option: default alert.
|
static int |
ALERT_OPTION_HIGH_PRIORITY_ONCE
Alert option: high-priority alert once.
|
static int |
ALERT_OPTION_HIGH_PRIORITY_REPEAT
Alert option: high-priority alert - repeat.
|
static int |
ALERT_OPTION_LOW_PRIORITY_ONCE
Alert option: low-priority alert once.
|
static int |
ALERT_OPTION_LOW_PRIORITY_REPEAT
Alert option: low-priority alert - repeat.
|
static int |
ALERT_OPTION_MED_PRIORITY_ONCE
Alert option: medium-priority alert once.
|
static int |
ALERT_OPTION_MED_PRIORITY_REPEAT
Alert option: medium-priority alert - repeat.
|
static int |
ALERT_OPTION_NO_ALERT
Alert option: no alert.
|
static int |
ALERT_OPTION_VIBRATE_ONCE
Alert option: vibrate alert once.
|
static int |
ALERT_OPTION_VIBRATE_REPEAT
Alert option: vibrate alert - repeat.
|
static int |
ALERT_OPTION_VISUAL_ONCE
Alert option: visual alert once.
|
static int |
ALERT_OPTION_VISUAL_REPEAT
Alert option: visual alert - repeat.
|
static Parcelable.Creator<CdmaSmsCbProgramData> |
CREATOR
Creator for unparcelling objects.
|
static int |
OPERATION_ADD_CATEGORY
Add the specified service category to the list of enabled categories.
|
static int |
OPERATION_CLEAR_CATEGORIES
Clear all service categories from the list of enabled categories.
|
static int |
OPERATION_DELETE_CATEGORY
Delete the specified service category from the list of enabled categories.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CdmaSmsCbProgramData(int operation,
int category,
int language,
int maxMessages,
int alertOption,
String categoryName)
Create a new CdmaSmsCbProgramData object with the specified values.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in the marshalled representation.
|
int |
getAlertOption()
Returns the service category alert option, e.g.
|
int |
getCategory()
Returns the CDMA service category to modify.
|
String |
getCategoryName()
Returns the service category name, in the language specified by
getLanguage() . |
int |
getLanguage()
Returns the CDMA language code for this service category.
|
int |
getMaxMessages()
Returns the maximum number of messages to store for this service category.
|
int |
getOperation()
Returns the service category operation, e.g.
|
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 OPERATION_DELETE_CATEGORY
public static final int OPERATION_ADD_CATEGORY
public static final int OPERATION_CLEAR_CATEGORIES
public static final int ALERT_OPTION_NO_ALERT
public static final int ALERT_OPTION_DEFAULT_ALERT
public static final int ALERT_OPTION_VIBRATE_ONCE
public static final int ALERT_OPTION_VIBRATE_REPEAT
public static final int ALERT_OPTION_VISUAL_ONCE
public static final int ALERT_OPTION_VISUAL_REPEAT
public static final int ALERT_OPTION_LOW_PRIORITY_ONCE
public static final int ALERT_OPTION_LOW_PRIORITY_REPEAT
public static final int ALERT_OPTION_MED_PRIORITY_ONCE
public static final int ALERT_OPTION_MED_PRIORITY_REPEAT
public static final int ALERT_OPTION_HIGH_PRIORITY_ONCE
public static final int ALERT_OPTION_HIGH_PRIORITY_REPEAT
public static final Parcelable.Creator<CdmaSmsCbProgramData> CREATOR
public CdmaSmsCbProgramData(int operation, int category, int language, int maxMessages, int alertOption, String categoryName)
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 getOperation()
OPERATION_ADD_CATEGORY
.OPERATION_*
valuespublic int getCategory()
public int getLanguage()
public int getMaxMessages()
public int getAlertOption()
ALERT_OPTION_DEFAULT_ALERT
.ALERT_OPTION_*
valuespublic String getCategoryName()
getLanguage()
.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