to top
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 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 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.
[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 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 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"

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.