mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-02 01:08:19 +00:00
21 lines
575 B
Plaintext
21 lines
575 B
Plaintext
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||
|
/*
|
||
|
* API for sharing text, links and other content to an arbitrary destination of the user's choice.
|
||
|
* W3C Working Draft, 22 November 2021
|
||
|
* The origin of this IDL file is:
|
||
|
* https://www.w3.org/TR/web-share
|
||
|
*/
|
||
|
|
||
|
partial interface Navigator {
|
||
|
[SecureContext] Promise<undefined> share(optional ShareData data = {});
|
||
|
|
||
|
[SecureContext] boolean canShare(optional ShareData data = {});
|
||
|
};
|
||
|
|
||
|
dictionary ShareData {
|
||
|
sequence<File> files;
|
||
|
USVString title;
|
||
|
USVString text;
|
||
|
USVString url;
|
||
|
};
|