Android APIs
public static final class

VoicemailContract.Voicemails

extends Object
implements BaseColumns OpenableColumns
java.lang.Object
   ↳ android.provider.VoicemailContract.Voicemails

Class Overview

Defines fields exposed through the /voicemail path of this content provider.

Summary

Constants
String DATE The date the voicemail was sent, in milliseconds since the epoch

Type: INTEGER (long)

String DELETED Flag used to indicate that the voicemail was deleted but not synced to the server.
String DIRTY Flag used to indicate that local, unsynced changes are present.
String DIR_TYPE The MIME type for a collection of voicemails.
String DURATION The duration of the voicemail in seconds.
String HAS_CONTENT Whether the media content for this voicemail is available for consumption.
String IS_READ Whether this item has been read or otherwise consumed by the user.
String ITEM_TYPE The MIME type for a single voicemail.
String MIME_TYPE MIME type of the media content for the voicemail.
String NUMBER Phone number of the voicemail sender.
String PHONE_ACCOUNT_COMPONENT_NAME The ComponentName of the PhoneAccount in string form.
String PHONE_ACCOUNT_ID The identifier of a PhoneAccount that is unique to a specified ComponentName.
String SOURCE_DATA Application-specific data available to the source application that inserted the voicemail.
String SOURCE_PACKAGE Package name of the source application that inserted the voicemail.
String TRANSCRIPTION The transcription of the voicemail entry.
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.OpenableColumns
Fields
public static final Uri CONTENT_URI URI to insert/retrieve voicemails.
Public Methods
static Uri buildSourceUri(String packageName)
A convenience method to build voicemail URI specific to a source package by appending PARAM_KEY_SOURCE_PACKAGE param to the base URI.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String DATE

Added in API level 14

The date the voicemail was sent, in milliseconds since the epoch

Type: INTEGER (long)

Constant Value: "date"

public static final String DELETED

Added in API level 23

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)

Constant Value: "deleted"

public static final String DIRTY

Added in API level 23

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.

Type: INTEGER (boolean)

Constant Value: "dirty"

public static final String DIR_TYPE

Added in API level 14

The MIME type for a collection of voicemails.

Constant Value: "vnd.android.cursor.dir/voicemails"

public static final String DURATION

Added in API level 14

The duration of the voicemail in seconds.

Type: INTEGER (long)

Constant Value: "duration"

public static final String HAS_CONTENT

Added in API level 14

Whether the media content for this voicemail is available for consumption.

Type: INTEGER (boolean)

Constant Value: "has_content"

public static final String IS_READ

Added in API level 14

Whether this item has been read or otherwise consumed by the user.

Type: INTEGER (boolean)

Constant Value: "is_read"

public static final String ITEM_TYPE

Added in API level 14

The MIME type for a single voicemail.

Constant Value: "vnd.android.cursor.item/voicemail"

public static final String MIME_TYPE

Added in API level 14

MIME type of the media content for the voicemail.

Type: TEXT

Constant Value: "mime_type"

public static final String NUMBER

Added in API level 14

Phone number of the voicemail sender.

Type: TEXT

Constant Value: "number"

public static final String PHONE_ACCOUNT_COMPONENT_NAME

Added in API level 23

The ComponentName of the PhoneAccount in string form. The PhoneAccount of the voicemail is used to differentiate voicemails from different sources.

Type: TEXT

Constant Value: "subscription_component_name"

public static final String PHONE_ACCOUNT_ID

Added in API level 23

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

Constant Value: "subscription_id"

public static final String SOURCE_DATA

Added in API level 14

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.

Constant Value: "source_data"

public static final String SOURCE_PACKAGE

Added in API level 14

Package name of the source application that inserted the voicemail.

Type: TEXT

Constant Value: "source_package"

public static final String TRANSCRIPTION

Added in API level 21

The transcription of the voicemail entry. This will only be populated if the voicemail entry has a valid transcription.

Type: TEXT

Constant Value: "transcription"

Fields

public static final Uri CONTENT_URI

Added in API level 14

URI to insert/retrieve voicemails.

Public Methods

public static Uri buildSourceUri (String packageName)

Added in API level 14

A convenience method to build voicemail URI specific to a source package by appending PARAM_KEY_SOURCE_PACKAGE param to the base URI.