MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

B2G OS

MozMobileConnection.cardState

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

Summary

The cardState is a read-only property that indicates the state of the device's ICC card.

Syntax

var state = navigator.mozMobileConnection.cardState

Value

Returns a string representing the ICC card's state. Possible values are:

  • unknown
  • absent
  • pinRequired
  • pukRequired
  • networkLocked
  • ready

This property can also be null.

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, fscholz, MHasan, kscarfone, justinpotts, Sheppy, Jeremie
 Last updated by: chrisdavidmills,