<!--
{
  "availability" : [
    "iOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TelephonyMessagingKit",
  "identifier" : "/documentation/TelephonyMessagingKit/MMSPartContent/init(data:contentType:contentID:disposition:fileName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "TelephonyMessagingKit"
    ],
    "preciseIdentifier" : "s:21TelephonyMessagingKit14MMSPartContentV4data11contentType0G2ID11disposition8fileNameAC10Foundation4DataV_07UniformH11Identifiers6UTTypeVSgSSAC014MMSDispositionH0OSStcfc"
  },
  "title" : "init(data:contentType:contentID:disposition:fileName:)"
}
-->

# init(data:contentType:contentID:disposition:fileName:)

Creates an MMS part with the provided values.

```
init(data: Data, contentType: UTType?, contentID: String, disposition: MMSPartContent.MMSDispositionType, fileName: String)
```

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)