NDEFReadingEvent

草案
此页面不完整。

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers .

这是 实验性技术
检查 浏览器兼容性表格 在生产中使用这之前。

NDEFReadingEvent interface represents events despatched on new NFC readings obtained by NDEFReader .

构造函数

NDEFReadingEvent.NDEFReadingEvent()
创建 NDEFReadingEvent event with the given parameters.

特性

Also inherits properties from its parent Event .

NDEFReadingEvent.serialNumber 只读
Represents the serial number of the device used for anti-collision and identification, or empty string in case none is available.
NDEFReadingEvent.message 只读
Represents the received message as an NDEFMessage 对象。

方法

Inherits methods from its parent Event .

规范

规范 状态 Comment
Web NFC, NDEFReadingEvent 草案 初始定义。

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
NDEFReadingEvent
Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No
NDEFReadingEvent() 构造函数
Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No
message
Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No
Secure context required Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No
serialNumber
Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No

图例

不支持
不支持
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。

另请参阅

  1. NDEFReadingEvent