Most visited

Recently visited

Added in API level 14

VoicemailContract.Voicemails

public static final class VoicemailContract.Voicemails
extends Object implements BaseColumns, OpenableColumns

java.lang.Object
   ↳ android.provider.VoicemailContract.Voicemails


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 LAST_MODIFIED

The date the row is last inserted, updated, or marked as deleted, in milliseconds since the epoch.

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.

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.

Inherited methods

From class java.lang.Object

Constants

DATE

Added in API level 14
String DATE

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

Type: INTEGER (long)

Constant Value: "date"

DELETED

Added in API level 23
String DELETED

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"

DIRTY

Added in API level 23
String DIRTY

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"

DIR_TYPE

Added in API level 14
String DIR_TYPE

The MIME type for a collection of voicemails.

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

DURATION

Added in API level 14
String DURATION

The duration of the voicemail in seconds.

Type: INTEGER (long)

Constant Value: "duration"

HAS_CONTENT

Added in API level 14
String HAS_CONTENT

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

Type: INTEGER (boolean)

Constant Value: "has_content"

IS_READ

Added in API level 14
String IS_READ

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

Type: INTEGER (boolean)

Constant Value: "is_read"

ITEM_TYPE

Added in API level 14
String ITEM_TYPE

The MIME type for a single voicemail.

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

LAST_MODIFIED

Added in API level 24
String LAST_MODIFIED

The date the row is last inserted, updated, or marked as deleted, in milliseconds since the epoch. Read only.

Type: INTEGER (long)

Constant Value: "last_modified"

MIME_TYPE

Added in API level 14
String MIME_TYPE

MIME type of the media content for the voicemail.

Type: TEXT

Constant Value: "mime_type"

NUMBER

Added in API level 14
String NUMBER

Phone number of the voicemail sender.

Type: TEXT

Constant Value: "number"

PHONE_ACCOUNT_COMPONENT_NAME

Added in API level 23
String PHONE_ACCOUNT_COMPONENT_NAME

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"

PHONE_ACCOUNT_ID

Added in API level 23
String PHONE_ACCOUNT_ID

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"

SOURCE_DATA

Added in API level 14
String SOURCE_DATA

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"

SOURCE_PACKAGE

Added in API level 14
String SOURCE_PACKAGE

Package name of the source application that inserted the voicemail.

Type: TEXT

Constant Value: "source_package"

TRANSCRIPTION

Added in API level 21
String TRANSCRIPTION

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

CONTENT_URI

Added in API level 14
Uri CONTENT_URI

URI to insert/retrieve voicemails.

Public methods

buildSourceUri

Added in API level 14
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.

Parameters
packageName String
Returns
Uri

Hooray!