public class VisualVoicemailSmsFilterSettings extends Object implements Parcelable
[clientPrefix]:[prefix]:([key]=[value];)*
will be regarded as a visual voicemail SMS, and removed before reaching the SMS provider. The
intent VoicemailContract.ACTION_VOICEMAIL_SMS_RECEIVED
will then be sent
to the default dialer with the information extracted from the SMS.
Use VisualVoicemailSmsFilterSettings.Builder
to construct this
class.
Modifier and Type | Class and Description |
---|---|
static class |
VisualVoicemailSmsFilterSettings.Builder
Builder class for
VisualVoicemailSmsFilterSettings objects. |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
String |
clientPrefix
The client prefix for the visual voicemail SMS filter.
|
static Parcelable.Creator<VisualVoicemailSmsFilterSettings> |
CREATOR |
static String |
DEFAULT_CLIENT_PREFIX |
static int |
DEFAULT_DESTINATION_PORT |
static List<String> |
DEFAULT_ORIGINATING_NUMBERS |
static int |
DESTINATION_PORT_ANY
The visual voicemail SMS message does not have to be a data SMS, and can be directed to any
port.
|
static int |
DESTINATION_PORT_DATA_SMS
The visual voicemail SMS message can be directed to any port, but must be a data SMS.
|
int |
destinationPort
The destination port for the visual voicemail SMS filter, or
DESTINATION_PORT_ANY ,
or DESTINATION_PORT_DATA_SMS |
List<String> |
originatingNumbers
The originating number whitelist for the visual voicemail SMS filter of a phone account.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public static final int DESTINATION_PORT_ANY
public static final int DESTINATION_PORT_DATA_SMS
public static final String DEFAULT_CLIENT_PREFIX
public static final int DEFAULT_DESTINATION_PORT
public final String clientPrefix
public final List<String> originatingNumbers
public final int destinationPort
DESTINATION_PORT_ANY
,
or DESTINATION_PORT_DATA_SMS
public static final Parcelable.Creator<VisualVoicemailSmsFilterSettings> CREATOR
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.