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 |
String! |
Raw message body of the received SMS. |
PhoneAccountHandle! |
The |
String! |
The event type of the SMS or |
Unit |
writeToParcel(dest: Parcel, flags: Int) |
Properties | |
---|---|
static Parcelable.Creator<VisualVoicemailSms!> |
Public 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 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
getFields
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
fun getMessageBody(): String!
Raw message body of the received SMS.
getPhoneAccountHandle
fun getPhoneAccountHandle(): PhoneAccountHandle!
The PhoneAccountHandle
that received the SMS.
getPrefix
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
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 |