FileDocCategorySizeDatePackage
CdmaSmsCbProgramData.javaAPI DocAndroid 5.1 API7209Thu Mar 12 22:22:42 GMT 2015android.telephony.cdma

CdmaSmsCbProgramData

public class CdmaSmsCbProgramData extends Object implements android.os.Parcelable
CDMA Service Category Program Data from SCPT teleservice SMS. The CellBroadcastReceiver app receives an Intent with action {@link android.provider.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. {@hide}

Fields Summary
public static final int
OPERATION_DELETE_CATEGORY
Delete the specified service category from the list of enabled categories.
public static final int
OPERATION_ADD_CATEGORY
Add the specified service category to the list of enabled categories.
public static final int
OPERATION_CLEAR_CATEGORIES
Clear all service categories from the list of enabled categories.
public static final int
ALERT_OPTION_NO_ALERT
Alert option: no alert.
public static final int
ALERT_OPTION_DEFAULT_ALERT
Alert option: default alert.
public static final int
ALERT_OPTION_VIBRATE_ONCE
Alert option: vibrate alert once.
public static final int
ALERT_OPTION_VIBRATE_REPEAT
Alert option: vibrate alert - repeat.
public static final int
ALERT_OPTION_VISUAL_ONCE
Alert option: visual alert once.
public static final int
ALERT_OPTION_VISUAL_REPEAT
Alert option: visual alert - repeat.
public static final int
ALERT_OPTION_LOW_PRIORITY_ONCE
Alert option: low-priority alert once.
public static final int
ALERT_OPTION_LOW_PRIORITY_REPEAT
Alert option: low-priority alert - repeat.
public static final int
ALERT_OPTION_MED_PRIORITY_ONCE
Alert option: medium-priority alert once.
public static final int
ALERT_OPTION_MED_PRIORITY_REPEAT
Alert option: medium-priority alert - repeat.
public static final int
ALERT_OPTION_HIGH_PRIORITY_ONCE
Alert option: high-priority alert once.
public static final int
ALERT_OPTION_HIGH_PRIORITY_REPEAT
Alert option: high-priority alert - repeat.
private final int
mOperation
Service category operation (add/delete/clear).
private final int
mCategory
Service category to modify.
private final int
mLanguage
Language used for service category name (defined in BearerData.LANGUAGE_*).
private final int
mMaxMessages
Maximum number of messages to store for this service category.
private final int
mAlertOption
Service category alert option.
private final String
mCategoryName
Name of service category.
public static final Parcelable.Creator
CREATOR
Creator for unparcelling objects.
Constructors Summary
public CdmaSmsCbProgramData(int operation, int category, int language, int maxMessages, int alertOption, String categoryName)
Create a new CdmaSmsCbProgramData object with the specified values.


              
            
                
        mOperation = operation;
        mCategory = category;
        mLanguage = language;
        mMaxMessages = maxMessages;
        mAlertOption = alertOption;
        mCategoryName = categoryName;
    
CdmaSmsCbProgramData(android.os.Parcel in)
Create a new CdmaSmsCbProgramData object from a Parcel.

        mOperation = in.readInt();
        mCategory = in.readInt();
        mLanguage = in.readInt();
        mMaxMessages = in.readInt();
        mAlertOption = in.readInt();
        mCategoryName = in.readString();
    
Methods Summary
public intdescribeContents()
Describe the kinds of special objects contained in the marshalled representation.

return
a bitmask indicating this Parcelable contains no special objects

        return 0;
    
public intgetAlertOption()
Returns the service category alert option, e.g. {@link #ALERT_OPTION_DEFAULT_ALERT}.

return
one of the {@code ALERT_OPTION_*} values

        return mAlertOption;
    
public intgetCategory()
Returns the CDMA service category to modify.

return
a 16-bit CDMA service category value

        return mCategory;
    
public java.lang.StringgetCategoryName()
Returns the service category name, in the language specified by {@link #getLanguage()}.

return
an optional service category name

        return mCategoryName;
    
public intgetLanguage()
Returns the CDMA language code for this service category.

return
one of the language values defined in BearerData.LANGUAGE_*

        return mLanguage;
    
public intgetMaxMessages()
Returns the maximum number of messages to store for this service category.

return
the maximum number of messages to store for this service category

        return mMaxMessages;
    
public intgetOperation()
Returns the service category operation, e.g. {@link #OPERATION_ADD_CATEGORY}.

return
one of the {@code OPERATION_*} values

        return mOperation;
    
public java.lang.StringtoString()

        return "CdmaSmsCbProgramData{operation=" + mOperation + ", category=" + mCategory
                + ", language=" + mLanguage + ", max messages=" + mMaxMessages
                + ", alert option=" + mAlertOption + ", category name=" + mCategoryName + '}";
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Flatten this object into a Parcel.

param
dest The Parcel in which the object should be written.
param
flags Additional flags about how the object should be written (ignored).

        dest.writeInt(mOperation);
        dest.writeInt(mCategory);
        dest.writeInt(mLanguage);
        dest.writeInt(mMaxMessages);
        dest.writeInt(mAlertOption);
        dest.writeString(mCategoryName);