Added in API level 26

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 VisualVoicemailSmsFilterSettings objects.

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

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 DESTINATION_PORT_ANY, or DESTINATION_PORT_DATA_SMS

MutableList<String!>!

The originating number allow list for the visual voicemail SMS filter of a phone account.

Constants

DESTINATION_PORT_ANY

Added in API level 26
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: -1

DESTINATION_PORT_DATA_SMS

Added in API level 26
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: -2

Public methods

describeContents

Added in API level 26
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

toString

Added in API level 26
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 26
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 either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 26
static val CREATOR: Parcelable.Creator<VisualVoicemailSmsFilterSettings!>

clientPrefix

Added in API level 26
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

Added in API level 26
val destinationPort: Int

The destination port for the visual voicemail SMS filter, or DESTINATION_PORT_ANY, or DESTINATION_PORT_DATA_SMS

originatingNumbers

Added in API level 26
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.