MozMobileNetworkInfo.state

This API is available on Firefox OS for internal applications only.

Summary

The state is a read-only property that gives the state of the network operator.

Syntax

JavaScript
var operator = navigator.mozMobileConnection.data.network.state

Value

Return an enum MobileNetworkState object.

  • enum MobileNetworkState {"available", "connected", "forbidden"};

If the state of the network operator is unknown, this property is null.

Specification

Not part of any specification.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/mozmobilenetworkinfo/state

API B2G Firefox OS Property Reference Référence