Skip to content

Function: share() ​

ts
function share(filePath): Promise<ShareResult>;

Open the system share sheet for a file.

Parameters ​

ParameterTypeDescription
filePathstringAbsolute path of the file. On Android it must be inside the library's output directories.

Returns ​

Promise<ShareResult>

Whether the user completed the share.

Throws ​

Error synchronously when filePath is empty.

Released under the MIT License.