Part
class Part : BaseColumns
kotlin.Any | |
↳ | android.provider.Telephony.Mms.Part |
Contains message parts. To avoid issues where applications might cache a part ID, the ID of a deleted part must not be reused to point at a new part.
Summary
Constants | |
---|---|
static String |
The charset of the part. |
static String |
The content disposition of the part. |
static String |
The content ID of the part. |
static String |
The content location of the part. |
static String |
The content type of the part. |
static String |
The start of content-type of the message. |
static String |
The type of content-type of the message. |
static String |
The file name of the part. |
static String |
The identifier of the message which this part belongs to. |
static String |
The name of the part. |
static String |
The order of the part. |
static String |
The message text. |
static String |
The location (on filesystem) of the binary data of the part. |
Inherited constants | |
---|---|
Public methods | |
---|---|
static Uri |
getPartUriForMessage(messageId: String) Generates a Part |
Properties | |
---|---|
static Uri |
The |
Constants
CHARSET
static val CHARSET: String
The charset of the part.
Type: TEXT
Value: "chset"
CONTENT_DISPOSITION
static val CONTENT_DISPOSITION: String
The content disposition of the part.
Type: TEXT
Value: "cd"
CONTENT_ID
static val CONTENT_ID: String
The content ID of the part.
Type: INTEGER
Value: "cid"
CONTENT_LOCATION
static val CONTENT_LOCATION: String
The content location of the part.
Type: INTEGER
Value: "cl"
CONTENT_TYPE
static val CONTENT_TYPE: String
The content type of the part.
Type: TEXT
Value: "ct"
CT_START
static val CT_START: String
The start of content-type of the message.
Type: INTEGER
Value: "ctt_s"
CT_TYPE
static val CT_TYPE: String
The type of content-type of the message.
Type: TEXT
Value: "ctt_t"
FILENAME
static val FILENAME: String
The file name of the part.
Type: TEXT
Value: "fn"
MSG_ID
static val MSG_ID: String
The identifier of the message which this part belongs to.
Type: INTEGER
Value: "mid"
_DATA
static val _DATA: String
The location (on filesystem) of the binary data of the part.
Type: INTEGER
Value: "_data"
Public methods
getPartUriForMessage
static fun getPartUriForMessage(messageId: String): Uri
Generates a Part Uri
for message, used to perform Part table operation for mms.
Parameters | |
---|---|
messageId |
String: the messageId used to generate Part Uri dynamically This value cannot be null . |
Return | |
---|---|
Uri |
the partUri used to perform Part table operation for mms This value cannot be null . |
Properties
CONTENT_URI
static val CONTENT_URI: Uri
The content://
style URL for this table. Can be appended with a part ID to address individual parts.