> For the complete documentation index, see [llms.txt](https://xplat.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xplat.gitbook.io/docs/xplat.applicationmodel.datatransfer/idatapackageview.md).

# IDataPackageView

> Namespace: XPlat.ApplicationModel.DataTransfer

A read-only version of a DataPackage. Apps that receive shared content get this object when acquiring content.

```csharp
public interface IDataPackageView
```

## Supported platforms

| Platform        | Version    |
| --------------- | ---------- |
| .NET Standard   | 2.0        |
| Xamarin.Android | 9.0        |
| Xamarin.iOS     | 1.0        |
| UWP             | 10.0.16299 |

## Methods

### Task GetTextAsync()

Gets the text in the DataPackageView object.

```csharp
Task<string> GetTextAsync();
```

#### Returns

The text.
