Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Builder

*** ** * ** ***

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.app.contentsafety.ClassifiableContent.Builder](https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#) |

Builder for `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent`.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#Builder(android.content.LocusId,%20kotlin.String)(locusId: https://developer.android.com/reference/kotlin/android/content/LocusId.html#, mimeType: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Creates a new builder. |

| Public methods ||
|---|---|
| [ClassifiableContent](https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent) | `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#build()()` Builds the `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent` object. |
| [ClassifiableContent.Builder](https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#) | `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#setData(android.os.ParcelFileDescriptor)(data: https://developer.android.com/reference/kotlin/android/os/ParcelFileDescriptor.html#)` Sets the `https://developer.android.com/reference/kotlin/android/os/ParcelFileDescriptor.html#` containing the raw data of this content. |
| [ClassifiableContent.Builder](https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#) | `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#setUri(android.net.Uri)(uri: https://developer.android.com/reference/kotlin/android/net/Uri.html#)` Sets the `https://developer.android.com/reference/kotlin/android/net/Uri.html#` of the content. |

## Public constructors

### Builder

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
Builder(
    locusId: LocusId, 
    mimeType: String)
```

Creates a new builder.

| Parameters ||
|---|---|
| `locusId` | [LocusId](https://developer.android.com/reference/kotlin/android/content/LocusId.html#): the `https://developer.android.com/reference/kotlin/android/content/LocusId.html#` to set. This value cannot be `null`. |
| `mimeType` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): the MIME type of the content. This value cannot be `null`. |

## Public methods

### build

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun build(): ClassifiableContent
```

Builds the `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent` object.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent` | the built `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent` This value cannot be `null`. |

### setData

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun setData(data: ParcelFileDescriptor): ClassifiableContent.Builder
```

Sets the `https://developer.android.com/reference/kotlin/android/os/ParcelFileDescriptor.html#` containing the raw data of this content.

| Parameters ||
|---|---|
| `data` | [ParcelFileDescriptor](https://developer.android.com/reference/kotlin/android/os/ParcelFileDescriptor.html#): the `https://developer.android.com/reference/kotlin/android/os/ParcelFileDescriptor.html#` to set. This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#` | this builder. This value cannot be `null`. |

### setUri

Added in [API level 37.2](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

```
fun setUri(uri: Uri): ClassifiableContent.Builder
```

Sets the `https://developer.android.com/reference/kotlin/android/net/Uri.html#` of the content.

| Parameters ||
|---|---|
| `uri` | [Uri](https://developer.android.com/reference/kotlin/android/net/Uri.html#): the `https://developer.android.com/reference/kotlin/android/net/Uri.html#` to set. This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/contentsafety/ClassifiableContent.Builder#` | this builder. This value cannot be `null`. |