You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!
canShare() method of the
Navigator interface returns
true if a call to
Navigator.share() would succeed.
var canShare = navigator.canShare(data);
- An object containing data to share that matches what you would pass to
|Web Share API - Level 2
The definition of 'canShare' in that specification.
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.