2014-07-31 13:11:04 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
[Constructor(DOMString type, optional MozNFCPeerEventInit eventInitDict),
|
2014-11-06 06:12:38 +03:00
|
|
|
Func="Navigator::HasNFCSupport", CheckPermissions="nfc nfc-share",
|
2014-12-05 02:55:14 +03:00
|
|
|
AvailableIn="PrivilegedApps"]
|
2014-07-31 13:11:04 +04:00
|
|
|
interface MozNFCPeerEvent : Event
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The detected NFCPeer.
|
|
|
|
*/
|
|
|
|
readonly attribute MozNFCPeer? peer;
|
|
|
|
};
|
|
|
|
|
|
|
|
dictionary MozNFCPeerEventInit : EventInit
|
|
|
|
{
|
|
|
|
MozNFCPeer? peer = null;
|
|
|
|
};
|