DeviceSharing
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides methods for sharing data on the client device, including text, URIs, and files.
- C#
- VB.NET
public class DeviceSharing
Public Class DeviceSharing
Access this class through the Device singleton.
Constructors
DeviceSharing()
Initializes a new instance of DeviceSharing.
Methods
ShareFiles(title, files)
Shares files on the client device.
| Parameter | Type | Description |
|---|---|---|
| title | String | The title or subject of the shared content. |
| files | Dictionary<String, Stream> | A dictionary of files to be shared, where the key is the file name and the value is a stream containing the file data. |
ShareText(title, text)
Shares text on the client device.
| Parameter | Type | Description |
|---|---|---|
| title | String | The title or subject of the shared content. |
| text | String | The text to be shared. |
ShareUri(title, uri)
Shares a URI (Uniform Resource Identifier) on the client device.
| Parameter | Type | Description |
|---|---|---|
| title | String | The title or subject of the shared content. |
| uri | String | The URI to be shared. |