VisualVoicemailSmsFilterSettings
class VisualVoicemailSmsFilterSettings : Parcelable
| kotlin.Any | |
| ↳ | android.telephony.VisualVoicemailSmsFilterSettings | 
Class to represent various settings for the visual voicemail SMS filter. When the filter is enabled, incoming SMS matching the generalized OMTP format:
[clientPrefix]:[prefix]:([key]=[value];)*
will be regarded as a visual voicemail SMS, and removed before reaching the SMS provider. The VisualVoicemailService in the current default dialer will be bound and VisualVoicemailService.onSmsReceived(VisualVoicemailTask, VisualVoicemailSms) will called with the information extracted from the SMS. 
Use android.telephony.VisualVoicemailSmsFilterSettings.Builder to construct this class.
Summary
| Nested classes | |
|---|---|
| Builder class for  | |
| Constants | |
|---|---|
| static Int | The visual voicemail SMS message does not have to be a data SMS, and can be directed to any port. | 
| static Int | The visual voicemail SMS message can be directed to any port, but must be a data SMS. | 
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| String | toString() | 
| Unit | writeToParcel(dest: Parcel, flags: Int) | 
| Properties | |
|---|---|
| static Parcelable.Creator<VisualVoicemailSmsFilterSettings!> | |
| String! | The client prefix for the visual voicemail SMS filter. | 
| Int | The destination port for the visual voicemail SMS filter, or  | 
| MutableList<String!>! | The originating number allow list for the visual voicemail SMS filter of a phone account. | 
Constants
DESTINATION_PORT_ANY
static val DESTINATION_PORT_ANY: Int
The visual voicemail SMS message does not have to be a data SMS, and can be directed to any port.
Value: -1DESTINATION_PORT_DATA_SMS
static val DESTINATION_PORT_DATA_SMS: Int
The visual voicemail SMS message can be directed to any port, but must be a data SMS.
Value: -2Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
toString
fun toString(): String
| Return | |
|---|---|
| String | a string representation of the object. | 
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
| Parameters | |
|---|---|
| dest | Parcel: The Parcel in which the object should be written. This value cannot be null. | 
| flags | Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
Properties
CREATOR
static val CREATOR: Parcelable.Creator<VisualVoicemailSmsFilterSettings!>
clientPrefix
val clientPrefix: String!
The client prefix for the visual voicemail SMS filter. The client prefix will appear at the start of a visual voicemail SMS message, followed by a colon(:).
destinationPort
val destinationPort: Int
The destination port for the visual voicemail SMS filter, or DESTINATION_PORT_ANY, or DESTINATION_PORT_DATA_SMS
originatingNumbers
val originatingNumbers: MutableList<String!>!
The originating number allow list for the visual voicemail SMS filter of a phone account. If the list is not null only the SMS messages from a number in the list can be considered as a visual voicemail SMS. Otherwise, messages from any address will be considered.
