A structure that defines custom headers within MMS content.
Members (14)
get · iOS 26.0+
contentType
TypeScript
get contentType(): (_UniformTypeIdentifiers_UTType) | null
Swift declaration
var contentType: UTType?
The content type of the part, as a Uniform Type Identifier.
Most MMS clients support the following content types:
* `text/x-vcalendar`
* `text/vcalendar`
* `text/x-calendar`
* `text/calendar`
* `text/x-vlocation`
* `text/x-location`
* `text/x-vcard`
* `text/vcard`
* `text/plain`
* `image/jpg`
* `image/bmp`
* `image/x-bmp`
* `image/png`
* `image/gif`
* `audio/x-aac`
* `audio/aac`
* `video/3gp`
* `video/3gp`
You can also use custom content types, such as a <doc://com.apple.documentation/documentation/uniformtypeidentifiers/uttype-swift.struct> based on a custom MIME type.
set · iOS 26.0+
contentType
TypeScript
set contentType(value: (_UniformTypeIdentifiers_UTType) | null)
Swift declaration
var contentType: UTType?
The content type of the part, as a Uniform Type Identifier.
Most MMS clients support the following content types:
* `text/x-vcalendar`
* `text/vcalendar`
* `text/x-calendar`
* `text/calendar`
* `text/x-vlocation`
* `text/x-location`
* `text/x-vcard`
* `text/vcard`
* `text/plain`
* `image/jpg`
* `image/bmp`
* `image/x-bmp`
* `image/png`
* `image/gif`
* `audio/x-aac`
* `audio/aac`
* `video/3gp`
* `video/3gp`
You can also use custom content types, such as a <doc://com.apple.documentation/documentation/uniformtypeidentifiers/uttype-swift.struct> based on a custom MIME type.
get · iOS 26.0+
disposition
TypeScript
get disposition(): MMSPartContent_MMSDispositionType
Swift declaration
var disposition: MMSPartContent.MMSDispositionType
The disposition of the MMS part, indicating whether the part renders inline or as an attachment.
set · iOS 26.0+
disposition
TypeScript
set disposition(value: MMSPartContent_MMSDispositionType)
Swift declaration
var disposition: MMSPartContent.MMSDispositionType
The disposition of the MMS part, indicating whether the part renders inline or as an attachment.
get · iOS 26.0+
customHeaders
TypeScript
get customHeaders(): Array<MMSPartContent_MMSCustomHeader>
Swift declaration
var customHeaders: [MMSPartContent.MMSCustomHeader]
A dictionary of custom headers to send in the MMS message.
Delivery of custom headers isn't guaranteed, since delivery depends on how accurately the cellular carrier network transports the MMS content.
set · iOS 26.0+
customHeaders
TypeScript
set customHeaders(value: Array<MMSPartContent_MMSCustomHeader>)
Swift declaration
var customHeaders: [MMSPartContent.MMSCustomHeader]
A dictionary of custom headers to send in the MMS message.
Delivery of custom headers isn't guaranteed, since delivery depends on how accurately the cellular carrier network transports the MMS content.
The raw data used for the MMS content part.
Interpreting this value depends on the part's ``contentType``.
For example, the data for a file attachment can be the file's contents in binary.
For file attachments, this can be the file contents in binary.
> Tip: When sending an MMS message that includes text, convert the text string to a <doc://com.apple.documentation/documentation/foundation/data> instance; for example, `let textData = myString.data(using: .utf8)`.
set · iOS 26.0+
data
TypeScript
set data(value: ArrayBuffer)
Swift declaration
var data: Data
The raw data used for the MMS content part.
Interpreting this value depends on the part's ``contentType``.
For example, the data for a file attachment can be the file's contents in binary.
For file attachments, this can be the file contents in binary.
> Tip: When sending an MMS message that includes text, convert the text string to a <doc://com.apple.documentation/documentation/foundation/data> instance; for example, `let textData = myString.data(using: .utf8)`.
Creates an MMS part with the provided values.
- Parameters:
- data: The raw data of the MMS part.
- contentType: The content type of the MMS part, as a <doc://com.apple.documentation/documentation/uniformtypeidentifiers/uttype-swift.struct>.
- contentID: The identifier of the MMS part.
- disposition: The disposition of the MMS part, indicating whether the part renders inline or as an attachment.
- fileName: The file name of the MMS part.
get · iOS 26.0+
filename
TypeScript
get filename(): string
Swift declaration
var filename: String
The file name of the MMS part.
If the file name is unavailable or doesn't apply to this kind of content part, use an empty string.
set · iOS 26.0+
filename
TypeScript
set filename(value: string)
Swift declaration
var filename: String
The file name of the MMS part.
If the file name is unavailable or doesn't apply to this kind of content part, use an empty string.
get · iOS 26.0+
contentID
TypeScript
get contentID(): string
Swift declaration
var contentID: String
A unique identifier for the part.
You can use this value for ordering or debugging.
set · iOS 26.0+
contentID
TypeScript
set contentID(value: string)
Swift declaration
var contentID: String
A unique identifier for the part.
You can use this value for ordering or debugging.