network-information
Implements Network Information API, which enables web applications to access information about the network connection in use by the device.
[ This description is mirrored from README.md at github.com/jorgecasar/network-information on 2019-05-22 ]
<network-information>
Implements Network Information API, which enables web applications to access information about the network connection in use by the device.
Installation
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your element locally.
Viewing Your Element
$ polymer serve
Running Tests
$ polymer test
Your application is already set up to be tested via web-component-tester. Run polymer test
to run your application's test suite locally.
Usage
<dom-bind>
<template>
<network-information
api-supported="{{apiSupported}}"
on-line="{{onLine}}"
type="{{type}}"
effective-type="{{effectiveType}}"
downlink-max="{{downlinkMax}}"
downlink="{{downlink}}"
rtt="{{rtt}}">
</network-information>
<ul>
<li>API supported: [[apiSupported]]</li>
<li>OnLine: [[onLine]]</li>
<li>Type: [[type]]</li>
<li>Efective type: [[effectiveType]]</li>
<li>Downlink Max: [[downlinkMax]]</li>
<li>Downlink: [[downlink]]</li>
<li>Rtt: [[rtt]]</li>
</ul>
</template>
</dom-bind>
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Credits
Spec. Network Information API.
License
MIT is open-sourced software licensed under the MIT license.
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- polymer#Polymer/polymer#^2.0.0
- Released
- 2017-06-19
- Maturity
- IMPORTED
- License
- MIT License
Compatibility
- Framework
- Polymer 2.0+
- Browser
- Browser Independent