package cordova-plugin-sim-card

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type call_state =
  1. | Call_state_idle
  2. | Call_state_ringing
  3. | Call_state_offhook
type data_activity =
  1. | Data_activity_none
  2. | Data_activity_in
  3. | Data_activity_out
  4. | Data_activity_inout
  5. | Data_activity_dormant
type network_type =
  1. | Network_type_unknown
  2. | Network_type_gprs
  3. | Network_type_edge
  4. | Network_type_umts
  5. | Network_type_cdma
  6. | Network_type_evdo_0
  7. | Network_type_evdo_a
  8. | Network_type_1Xrtt
  9. | Network_type_hsdpa
  10. | Network_type_hsupa
  11. | Network_type_hspa
  12. | Network_type_iden
  13. | Network_type_evdo_b
  14. | Network_type_lte
  15. | Network_type_ehrpd
  16. | Network_type_hspap
type phone_type =
  1. | Phone_type_none
  2. | Phone_type_gsm
  3. | Phone_type_cdma
  4. | Phone_type_sip
type sim_state =
  1. | Sim_state_unknown
  2. | Sim_state_absent
  3. | Sim_state_pin_required
  4. | Sim_state_puk_required
  5. | Sim_state_network_locked
  6. | Sim_state_ready
type result = private Ojs.t
val carrier_name : result -> string
val country_code : result -> string
val mcc : result -> string
val mnc : result -> string
val phone_number : result -> string
val device_id : result -> string
val device_software_version : result -> string
val sim_serial_number : result -> string
val subscriber_id : result -> string
val call_state : result -> call_state
val data_activity : result -> data_activity
val network_type : result -> network_type
val phone_type : result -> phone_type
val sim_state : result -> sim_state
val is_network_roaming : result -> bool
val allows_VOIP : result -> bool
val is_cellular_data_enabled : result -> bool
val is_cellular_data_roaming_enabled : result -> bool
val is_network_available : result -> bool
val is_wifi_enabled : result -> bool
val info : (result -> unit) -> (string -> unit) -> unit
val has_read_permission : (bool -> unit) -> (string -> unit) -> unit
val request_read_permission : unit -> unit
OCaml

Innovation. Community. Security.