Added in API level 19

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

Generates a Part Uri for message, used to perform Part table operation for mms.

Properties
static Uri

The content:// style URL for this table.

Constants

CHARSET

Added in API level 19
static val CHARSET: String

The charset of the part.

Type: TEXT

Value: "chset"

CONTENT_DISPOSITION

Added in API level 19
static val CONTENT_DISPOSITION: String

The content disposition of the part.

Type: TEXT

Value: "cd"

CONTENT_ID

Added in API level 19
static val CONTENT_ID: String

The content ID of the part.

Type: INTEGER

Value: "cid"

CONTENT_LOCATION

Added in API level 19
static val CONTENT_LOCATION: String

The content location of the part.

Type: INTEGER

Value: "cl"

CONTENT_TYPE

Added in API level 19
static val CONTENT_TYPE: String

The content type of the part.

Type: TEXT

Value: "ct"

CT_START

Added in API level 19
static val CT_START: String

The start of content-type of the message.

Type: INTEGER

Value: "ctt_s"

CT_TYPE

Added in API level 19
static val CT_TYPE: String

The type of content-type of the message.

Type: TEXT

Value: "ctt_t"

FILENAME

Added in API level 19
static val FILENAME: String

The file name of the part.

Type: TEXT

Value: "fn"

MSG_ID

Added in API level 19
static val MSG_ID: String

The identifier of the message which this part belongs to.

Type: INTEGER

Value: "mid"

NAME

Added in API level 19
static val NAME: String

The name of the part.

Type: TEXT

Value: "name"

SEQ

Added in API level 19
static val SEQ: String

The order of the part.

Type: INTEGER

Value: "seq"

TEXT

Added in API level 19
static val TEXT: String

The message text.

Type: TEXT

Value: "text"

_DATA

Added in API level 19
static val _DATA: String

The location (on filesystem) of the binary data of the part.

Type: INTEGER

Value: "_data"

Public methods

getPartUriForMessage

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

Added in API level 29
static val CONTENT_URI: Uri

The content:// style URL for this table. Can be appended with a part ID to address individual parts.