# FileHandlingData

Artifact: [androidx.browser:browser](https://developer.android.com/jetpack/androidx/releases/browser) [View Source](https://cs.android.com/search?q=file:androidx/browser/trusted/FileHandlingData.java+class:androidx.browser.trusted.FileHandlingData) Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

*** ** * ** ***


```
public final class FileHandlingData
```

<br />

*** ** * ** ***

Contains data to be delivered to the launch queue via a Trusted Web Activity. See `https://developer.android.com/reference/androidx/browser/trusted/TrustedWebActivityIntentBuilder#setFileHandlingData(androidx.browser.trusted.FileHandlingData)`.

## Summary

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#KEY_URIS() = "androidx.browser.trusted.KEY_URIS"` Bundle key for `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#uris()`. |

| ### Public fields |
|---|---|
| `final @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/net/Uri.html>` | `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#uris()` URIs of files to be handled. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#FileHandlingData(java.util.List<android.net.Uri>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/net/Uri.html> uris)` Creates a `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData` with the given parameters. |

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData` | `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#fromBundle(android.os.Bundle)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html bundle)` Unpacks the object from a `https://developer.android.com/reference/android/os/Bundle.html`. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#toBundle()()` Packs the object into a `https://developer.android.com/reference/android/os/Bundle.html` |

## Constants

### KEY_URIS

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public static final String KEY_URIS = "androidx.browser.trusted.KEY_URIS"
```

Bundle key for `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#uris()`.

## Public fields

### uris

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public final @NonNull List<Uri> uris
```

URIs of files to be handled.

## Public constructors

### FileHandlingData

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public FileHandlingData(@NonNull List<Uri> uris)
```

Creates a `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData` with the given parameters.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/android/net/Uri.html> uris` | The `https://developer.android.com/reference/androidx/browser/trusted/FileHandlingData#uris()`. |

## Public methods

### fromBundle

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public static @NonNull FileHandlingData fromBundle(@NonNull Bundle bundle)
```

Unpacks the object from a `https://developer.android.com/reference/android/os/Bundle.html`.

### toBundle

Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/browser#1.9.0)

```
public @NonNull Bundle toBundle()
```

Packs the object into a `https://developer.android.com/reference/android/os/Bundle.html`