Interface DeviceRegionOutput

Hierarchy

  • DeviceRegionOutput

Properties

Properties

sim: null | string

Country of the SIM card provider, as an uppercase ISO 3166-1 alpha-2 code. e.g. "BR", "US"

null when there is no SIM card, and always null on iOS, which no longer exposes carrier information.

network: null | string

Country of the mobile network the device is currently registered on, as an uppercase ISO 3166-1 alpha-2 code. May differ from sim while roaming. e.g. "BR", "US"

null when the device is not registered on a mobile network, and always null on iOS, which has no public API for it.

locale: null | string

Region of the device locale, as configured by the user in the system settings. Usually an uppercase ISO 3166-1 alpha-2 code, but may be a UN M.49 area code for locales such as es-419. e.g. "BR", "PT", "419"

null when the locale has no region.

Note that there are differences between what iOS and Android report as locales.

  • iOS: locale is the Region defined in the device`s settings, regardless of language selection.
  • Android: locale is the region associated to the device`s language (eg.: en-US has US locale).
timezone: string

IANA identifier of the device time zone. e.g. "America/Sao_Paulo", "Europe/Lisbon"

Generated using TypeDoc