Added in API level 26

VisualVoicemailSms

class VisualVoicemailSms : Parcelable
kotlin.Any
   ↳ android.telephony.VisualVoicemailSms

Represents the content of a visual voicemail SMS. If a incoming SMS matches the VisualVoicemailSmsFilterSettings set by the default dialer, android.telephony.VisualVoicemailService#onSmsReceived(android.telephony.VisualVoicemailService.VisualVoicemailTask,android.telephony.VisualVoicemailSms) will be called.

Summary

Inherited constants
Public methods
Int

Bundle!

The key-value pairs sent by the SMS, or null if the framework cannot parse the SMS as voicemail but the carrier pattern indicates it is.

String!

Raw message body of the received SMS.

PhoneAccountHandle!

The PhoneAccountHandle that received the SMS.

String!

The event type of the SMS or null if the framework cannot parse the SMS as voicemail but the carrier pattern indicates it is.

Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<VisualVoicemailSms!>

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

getFields

Added in API level 26
fun getFields(): Bundle!

The key-value pairs sent by the SMS, or null if the framework cannot parse the SMS as voicemail but the carrier pattern indicates it is. The interpretation of the fields is carrier dependent.

getMessageBody

Added in API level 26
fun getMessageBody(): String!

Raw message body of the received SMS.

getPhoneAccountHandle

Added in API level 26
fun getPhoneAccountHandle(): PhoneAccountHandle!

The PhoneAccountHandle that received the SMS.

getPrefix

Added in API level 26
fun getPrefix(): String!

The event type of the SMS or null if the framework cannot parse the SMS as voicemail but the carrier pattern indicates it is. Common values are "SYNC" or "STATUS".

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<VisualVoicemailSms!>