canShare

fun canShare(data: ShareData = definedExternally): Boolean(source)

Available only in secure contexts.

MDN Reference