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 |
ARCHIVED
Flag to indicate the voicemail was marked as archived. |
String |
BACKED_UP
Flag to indicate the voicemail was backed up. |
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. |
int |
DIRTY_RETAIN
Value of |
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_OMTP_VOICEMAIL
Flag to indicate the voicemail is a OMTP voicemail handled by the |
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 |
NEW
Whether or not the voicemail has been acknowledged (notification sent to the user). |
String |
NUMBER
Phone number of the voicemail sender. |
String |
PHONE_ACCOUNT_COMPONENT_NAME
The |
String |
PHONE_ACCOUNT_ID
The identifier of a |
String |
RESTORED
Flag to indicate the voicemail was restored from a backup. |
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 |
---|
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
|
Inherited methods | |
---|---|
Constants
ARCHIVED
public static final String ARCHIVED
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)
Constant Value: "archived"
BACKED_UP
public static final String BACKED_UP
Flag to indicate the voicemail was backed up. The value will be 1 if backed up, 0 if not.
Type: INTEGER (boolean)
Constant Value: "backed_up"
DATE
public static final String DATE
The date the voicemail was sent, in milliseconds since the epoch
Type: INTEGER (long)
Constant Value: "date"
DELETED
public static final 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
public static final 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.
When a caller updates a voicemail row (either with 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)
See also:
Constant Value: "dirty"
DIRTY_RETAIN
public static final int DIRTY_RETAIN
Value of DIRTY
when updating to indicate that the value should not be updated
during this operation.
Constant Value: -1 (0xffffffff)
DIR_TYPE
public static final String DIR_TYPE
The MIME type for a collection of voicemails.
Constant Value: "vnd.android.cursor.dir/voicemails"
DURATION
public static final String DURATION
The duration of the voicemail in seconds.
Type: INTEGER (long)
Constant Value: "duration"
HAS_CONTENT
public static final String HAS_CONTENT
Whether the media content for this voicemail is available for consumption.
Type: INTEGER (boolean)
Constant Value: "has_content"
IS_OMTP_VOICEMAIL
public static final String IS_OMTP_VOICEMAIL
Flag to indicate the voicemail is a OMTP voicemail handled by the VisualVoicemailService
. 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)
Constant Value: "is_omtp_voicemail"
IS_READ
public static final String IS_READ
Whether this item has been read or otherwise consumed by the user.
Type: INTEGER (boolean)
Constant Value: "is_read"
ITEM_TYPE
public static final String ITEM_TYPE
The MIME type for a single voicemail.
Constant Value: "vnd.android.cursor.item/voicemail"
LAST_MODIFIED
public static final 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
public static final String MIME_TYPE
MIME type of the media content for the voicemail.
Type: TEXT
Constant Value: "mime_type"
NEW
public static final String NEW
Whether or not the voicemail has been acknowledged (notification sent to the user).
Type: INTEGER (boolean)
Constant Value: "new"
NUMBER
public static final String NUMBER
Phone number of the voicemail sender.
Type: TEXT
Constant Value: "number"
PHONE_ACCOUNT_COMPONENT_NAME
public static final 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
public static final 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"
RESTORED
public static final String RESTORED
Flag to indicate the voicemail was restored from a backup. The value will be 1 if restored, 0 if not.
Type: INTEGER (boolean)
Constant Value: "restored"
SOURCE_DATA
public static final 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
public static final String SOURCE_PACKAGE
Package name of the source application that inserted the voicemail.
Type: TEXT
Constant Value: "source_package"
TRANSCRIPTION
public static final 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
public static final Uri CONTENT_URI
URI to insert/retrieve voicemails.
Public methods
buildSourceUri
public static Uri buildSourceUri (String packageName)
A convenience method to build voicemail URI specific to a source package by appending
VoicemailContract#PARAM_KEY_SOURCE_PACKAGE
param to the base URI.
Parameters | |
---|---|
packageName |
String |
Returns | |
---|---|
Uri |