-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reflect changes in scala-js/scala-js-dom#806 after review
- Loading branch information
1 parent
e6586e2
commit 07fd6ce
Showing
6 changed files
with
43 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
webapp/src/main/scala/org/scalajs/dom/NDEFReadingEvent.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
package org.scalajs.dom | ||
|
||
import scala.scalajs.js | ||
import scala.scalajs.js.annotation.JSGlobal | ||
|
||
/** The NDEFReadingEvent interface of the Web NFC API represents events dispatched on new NFC readings obtained by | ||
* NDEFReader. | ||
* | ||
* @see | ||
* https://developer.mozilla.org/en-US/docs/Web/API/NDEFReadingEvent | ||
* @see | ||
* https://w3c.github.io/web-nfc/#the-ndefreader-object | ||
*/ | ||
@js.native | ||
trait NDEFReadingEvent extends Event { | ||
@JSGlobal | ||
class NDEFReadingEvent(typeArg: String, init: NDEFReadingEventInit) extends Event(typeArg, init) { | ||
|
||
/** Returns an NDEFMessage object containing the received message. */ | ||
var message: NDEFMessage = js.native | ||
def message: NDEFMessage = js.native | ||
|
||
/** Returns the serial number of the device, which is used for anti-collision and identification, or an empty string | ||
* if no serial number is available. | ||
*/ | ||
var serialNumber: String = js.native | ||
|
||
def serialNumber: String = js.native | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters