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, VisualVoicemailService.onSmsReceived(VisualVoicemailTask, VisualVoicemailSms) will be called.
Summary
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| 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)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<VisualVoicemailSms!> | |
Public methods
describeContents
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
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
Flatten this object in to a Parcel.
| 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 the following:
|