Skip to content

isShareable ​

The isShareable function checks if the native sharing API is available in the browser.

Syntax ​

typescript
isShareable(): boolean;

Parameters ​

NameTypeDescription
––This function does not take any parameters

Returns ​

NameTypeDescription
–booleantrue if the sharing API is available

Examples ​

typescript
isShareable();
// => true

Notes ​

  • Useful for enabling features that depend on sharing capabilities.

References ​

Released under the MIT License.