Sim
Object Hierarchy:
Description:
[
CCode ( type_id =
"mm_sim_get_type ()" ) ]
public class Sim :
GdbusSimProxy,
AsyncInitable,
DBusInterface,
Initable,
GdbusSim
The Sim structure contains private data and should only be accessed using the provided API.
Content:
Creation methods:
Methods:
- public async bool change_pin (string old_pin, string new_pin, Cancellable? cancellable) throws Error
Asynchronously changes the PIN code in the SIM card.
- public bool change_pin_sync (string old_pin, string new_pin, Cancellable? cancellable = null) throws Error
Synchronously changes the PIN code in the SIM card.
- public async bool disable_pin (string pin, Cancellable? cancellable) throws Error
Asynchronously disables requesting the PIN code in the SIM card.
- public bool disable_pin_sync (string pin, Cancellable? cancellable = null) throws Error
Synchronously disables requesting the PIN code in the SIM card.
- public string dup_eid ()
Gets a copy of the Embedded UICC ID (EID) of the
Sim object.
- public string[] dup_emergency_numbers ()
Gets a copy of the list of emergency call numbers programmed in the
SIM card.
- public string dup_identifier ()
Gets a copy of the unique SIM identifier of the
Sim object.
- public string dup_imsi ()
Gets a copy of the International Mobile Subscriber Identity (IMSI) of
the Sim object.
- public string dup_operator_identifier ()
Gets a copy of the Operator Identifier of the Sim
object.
- public string dup_operator_name ()
Gets a copy of the Operator Name of the Sim
object.
- public string dup_path ()
Gets a copy of the DBus path of the Sim
object.
- public async bool enable_pin (string pin, Cancellable? cancellable) throws Error
Asynchronously enables requesting the PIN code in the SIM card.
- public bool enable_pin_sync (string pin, Cancellable? cancellable = null) throws Error
Synchronously enables requesting the PIN code in the SIM card.
- public bool get_active ()
Checks whether the Sim is currently active.
- public unowned string get_eid ()
Gets the Embedded UICC ID (or EID) of the Sim
object.
- public unowned string[] get_emergency_numbers ()
Gets the list of emergency call numbers programmed in the SIM card.
- public SimEsimStatus get_esim_status ()
Gets the eSIM status.
- public unowned string get_identifier ()
Gets the unique SIM identifier of the Sim
object.
- public unowned string get_imsi ()
Gets the International Mobile Subscriber Identity (IMSI) of the
Sim object.
- public unowned string get_operator_identifier ()
Gets the Operator Identifier of the Sim
object.
- public unowned string get_operator_name ()
Gets the Operator Name of the Sim object.
- public unowned string get_path ()
Gets the DBus path of the Sim object.
- public List<SimPreferredNetwork> get_preferred_networks ()
- public SimRemovability get_removability ()
Gets whether the SIM is removable or not.
- public SimType get_sim_type ()
Gets the SIM type.
- public async bool send_pin (string pin, Cancellable? cancellable) throws Error
Asynchronously sends the PIN code to the SIM card.
- public bool send_pin_sync (string pin, Cancellable? cancellable = null) throws Error
Synchronously sends the PIN to the SIM card.
- public async bool send_puk (string puk, string pin, Cancellable? cancellable) throws Error
Asynchronously sends the PUK code to the SIM card.
- public bool send_puk_sync (string puk, string pin, Cancellable? cancellable = null) throws Error
Synchronously sends the PUK to the SIM card.
- public async bool set_preferred_networks (List<SimPreferredNetwork> preferred_networks, Cancellable? cancellable) throws Error
Asynchronously sets the preferred network list of this
Sim.
- public bool set_preferred_networks_sync (List<SimPreferredNetwork> preferred_networks, Cancellable? cancellable = null) throws Error
Synchronously sets the preferred network list of this
Sim.
Inherited Members:
All known members inherited from class GLib.DBusProxy
- @new
- call
- call_sync
- call_with_unix_fd_list
- call_with_unix_fd_list_sync
- create_for_bus
- g_bus_type
- g_connection
- g_default_timeout
- g_flags
- g_interface_info
- g_interface_name
- g_name
- g_name_owner
- g_object_path
- g_properties_changed
- g_signal
- get_cached_property
- get_cached_property_names
- get_connection
- get_default_timeout
- get_flags
- get_interface_info
- get_interface_name
- get_name
- get_name_owner
- get_object_path
- set_cached_property
- set_default_timeout
- set_interface_info
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.DBusInterface
All known members inherited from interface GLib.Initable
All known members inherited from interface MM.GdbusSim