# DeviceSharing

Namespace: **Wisej.Hybrid**

Assembly: **Wisej.Hybrid** (3.5.0.0)

Provides methods for sharing data on the client device, including text, URIs, and files.

{% tabs %}
{% tab title="C#" %}

```csharp
public class DeviceSharing
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class DeviceSharing
```

{% endtab %}
{% endtabs %}

Access this class through the [Device](/hybrid/start/api/general/wisej.hybrid.device.md) singleton.

## Constructors

### ![](/files/CCV9PPenlC1YZvNh1I6R)DeviceSharing()

Initializes a new instance of [DeviceSharing](/hybrid/start/api/sharing/wisej.hybrid.devicesharing.md).

## Methods

### ![](/files/CCV9PPenlC1YZvNh1I6R)ShareFiles(title, files)

Shares files on the client device.

| Parameter | Type                                                                                                         | Description                                                                                                            |
| --------- | ------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| **title** | [String](https://docs.microsoft.com/dotnet/api/system.string)                                                | The title or subject of the shared content.                                                                            |
| **files** | [Dictionary\<String, Stream>](https://docs.microsoft.com/dotnet/api/system.collections.generic.dictionary-2) | A dictionary of files to be shared, where the key is the file name and the value is a stream containing the file data. |

### ![](/files/CCV9PPenlC1YZvNh1I6R)ShareText(title, text)

Shares text on the client device.

| Parameter | Type                                                          | Description                                 |
| --------- | ------------------------------------------------------------- | ------------------------------------------- |
| **title** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The title or subject of the shared content. |
| **text**  | [String](https://docs.microsoft.com/dotnet/api/system.string) | The text to be shared.                      |

### ![](/files/CCV9PPenlC1YZvNh1I6R)ShareUri(title, uri)

Shares a URI (Uniform Resource Identifier) on the client device.

| Parameter | Type                                                          | Description                                 |
| --------- | ------------------------------------------------------------- | ------------------------------------------- |
| **title** | [String](https://docs.microsoft.com/dotnet/api/system.string) | The title or subject of the shared content. |
| **uri**   | [String](https://docs.microsoft.com/dotnet/api/system.string) | The URI to be shared.                       |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/hybrid/start/api/sharing/wisej.hybrid.devicesharing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
