---
title: "init(data:contentType:contentID:disposition:fileName:)"
framework: TelephonyMessagingKit
role: symbol
role_heading: Initializer
platforms: [iOS 26.0+]
path: "telephonymessagingkit/mmspartcontent/init(data:contenttype:contentid:disposition:filename:)"
---

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

Creates an MMS part with the provided values.

## Declaration

```swift
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.
