Voicemails
class Voicemails : BaseColumns, OpenableColumns
kotlin.Any | |
↳ | android.provider.VoicemailContract.Voicemails |
Defines fields exposed through the /voicemail path of this content provider.
Summary
Constants | |
---|---|
static String |
Flag to indicate the voicemail was marked as archived. |
static String |
Flag to indicate the voicemail was backed up. |
static String |
The date the voicemail was sent, in milliseconds since the epoch |
static String |
Flag used to indicate that the voicemail was deleted but not synced to the server. |
static String |
Flag used to indicate that local, unsynced changes are present. |
static Int |
Value of |
static String |
The MIME type for a collection of voicemails. |
static String |
The duration of the voicemail in seconds. |
static String |
Whether the media content for this voicemail is available for consumption. |
static String |
Flag to indicate the voicemail is a OMTP voicemail handled by the . |
static String |
Whether this item has been read or otherwise consumed by the user. |
static String |
The MIME type for a single voicemail. |
static String |
The date the row is last inserted, updated, or marked as deleted, in milliseconds since the epoch. |
static String |
MIME type of the media content for the voicemail. |
static String |
Whether or not the voicemail has been acknowledged (notification sent to the user). |
static String |
Phone number of the voicemail sender. |
static String |
The |
static String |
The identifier of a |
static String |
Flag to indicate the voicemail was restored from a backup. |
static String |
Application-specific data available to the source application that inserted the voicemail. |
static String |
Package name of the source application that inserted the voicemail. |
static String |
The transcription of the voicemail entry. |
Inherited constants | |
---|---|
Public methods | |
---|---|
static Uri! |
buildSourceUri(packageName: String!) A convenience method to build voicemail URI specific to a source package by appending |
Properties | |
---|---|
static Uri! |
URI to insert/retrieve voicemails. |
Constants
ARCHIVED
static val ARCHIVED: String
Flag to indicate the voicemail was marked as archived. Archived voicemail should not be deleted even if it no longer exist on the server. The value will be 1 if archived true, 0 if not.
Type: INTEGER (boolean)
Value: "archived"
BACKED_UP
static val BACKED_UP: String
Flag to indicate the voicemail was backed up. The value will be 1 if backed up, 0 if not.
Type: INTEGER (boolean)
Value: "backed_up"
DATE
static val DATE: String
The date the voicemail was sent, in milliseconds since the epoch
Type: INTEGER (long)
Value: "date"
DELETED
static val DELETED: String
Flag used to indicate that the voicemail was deleted but not synced to the server. A deleted row should be ignored. The value will be 1 if deleted is true, 0 if false.
Type: INTEGER (boolean)
Value: "deleted"
DIRTY
static val DIRTY: String
Flag used to indicate that local, unsynced changes are present. Currently, this is used to indicate that the voicemail was read or deleted. The value will be 1 if dirty is true, 0 if false.
When a caller updates a voicemail row (either with android.content.ContentResolver#update or ContentResolver#applyBatch
), and if the ContentValues
doesn't contain this column, the voicemail provider implicitly sets it to 0 if the calling package is the SOURCE_PACKAGE
or to 1 otherwise. To prevent this behavior, explicitly set DIRTY_RETAIN
to DIRTY in the ContentValues
.
Type: INTEGER (boolean)
Value: "dirty"
See Also
DIRTY_RETAIN
static val DIRTY_RETAIN: Int
Value of DIRTY
when updating to indicate that the value should not be updated during this operation.
Value: -1
DIR_TYPE
static val DIR_TYPE: String
The MIME type for a collection of voicemails.
Value: "vnd.android.cursor.dir/voicemails"
DURATION
static val DURATION: String
The duration of the voicemail in seconds.
Type: INTEGER (long)
Value: "duration"
HAS_CONTENT
static val HAS_CONTENT: String
Whether the media content for this voicemail is available for consumption.
Type: INTEGER (boolean)
Value: "has_content"
IS_OMTP_VOICEMAIL
static val IS_OMTP_VOICEMAIL: String
Flag to indicate the voicemail is a OMTP voicemail handled by the . The UI should only show OMTP voicemails from the current visual voicemail package. For example, the selection could be WHERE (IS_OMTP_VOICEMAIL == 0) OR ( IS_OMTP_VOICEMAIL == 1 AND SOURCE_PACKAGE == "current.vvm.package")
Type: INTEGER (boolean)
Value: "is_omtp_voicemail"
IS_READ
static val IS_READ: String
Whether this item has been read or otherwise consumed by the user.
Type: INTEGER (boolean)
Value: "is_read"
ITEM_TYPE
static val ITEM_TYPE: String
The MIME type for a single voicemail.
Value: "vnd.android.cursor.item/voicemail"
LAST_MODIFIED
static val LAST_MODIFIED: String
The date the row is last inserted, updated, or marked as deleted, in milliseconds since the epoch. Read only.
Type: INTEGER (long)
Value: "last_modified"
MIME_TYPE
static val MIME_TYPE: String
MIME type of the media content for the voicemail.
Type: TEXT
Value: "mime_type"
NEW
static val NEW: String
Whether or not the voicemail has been acknowledged (notification sent to the user).
Type: INTEGER (boolean)
Value: "new"
NUMBER
static val NUMBER: String
Phone number of the voicemail sender.
Type: TEXT
Value: "number"
PHONE_ACCOUNT_COMPONENT_NAME
static val PHONE_ACCOUNT_COMPONENT_NAME: String
The ComponentName
of the PhoneAccount
in string form. The PhoneAccount
of the voicemail is used to differentiate voicemails from different sources.
Type: TEXT
Value: "subscription_component_name"
PHONE_ACCOUNT_ID
static val PHONE_ACCOUNT_ID: String
The identifier of a PhoneAccount
that is unique to a specified ComponentName
. The PhoneAccount
of the voicemail is used to differentiate voicemails from different sources.
Type: TEXT
Value: "subscription_id"
RESTORED
static val RESTORED: String
Flag to indicate the voicemail was restored from a backup. The value will be 1 if restored, 0 if not.
Type: INTEGER (boolean)
Value: "restored"
SOURCE_DATA
static val SOURCE_DATA: String
Application-specific data available to the source application that inserted the voicemail. This is typically used to store the source specific message id to identify this voicemail on the remote voicemail server.
Type: TEXT
Note that this is NOT the voicemail media content data.
Value: "source_data"
SOURCE_PACKAGE
static val SOURCE_PACKAGE: String
Package name of the source application that inserted the voicemail.
Type: TEXT
Value: "source_package"
TRANSCRIPTION
static val TRANSCRIPTION: String
The transcription of the voicemail entry. This will only be populated if the voicemail entry has a valid transcription.
Type: TEXT
Value: "transcription"
Public methods
buildSourceUri
static fun buildSourceUri(packageName: String!): Uri!
A convenience method to build voicemail URI specific to a source package by appending VoicemailContract#PARAM_KEY_SOURCE_PACKAGE
param to the base URI.