Skip to main content

DeviceSharing

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

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

public class DeviceSharing

Access this class through the Device singleton.

Constructors​

Instance memberDeviceSharing()​

Initializes a new instance of DeviceSharing.

Methods​

Instance memberShareFiles(title, files)​

Shares files on the client device.

ParameterTypeDescription
titleStringThe title or subject of the shared content.
filesDictionary<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.

Instance memberShareText(title, text)​

Shares text on the client device.

ParameterTypeDescription
titleStringThe title or subject of the shared content.
textStringThe text to be shared.

Instance memberShareUri(title, uri)​

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

ParameterTypeDescription
titleStringThe title or subject of the shared content.
uriStringThe URI to be shared.