get_operator_code


Description:

[ Version ( since = "1.0" ) ]
public unowned string get_operator_code ()

Gets the code of the operator to which the mobile is currently registered.

Returned in the format "MCCMNC", where MCC is the three-digit ITU E.212 Mobile Country Code and MNC is the two- or three-digit GSM Mobile Network Code. e.g. e"31026" or "310260".

If the MCC and MNC are not known or the mobile is not registered to a mobile network, this property will be a zero-length (blank) string.

Warning:

The returned value is only valid until the property changes so it is only safe to use this function on the thread where this was constructed. Use dup_operator_code if on another thread.

Parameters:

this

A Modem3gpp.

Returns:

The operator code, or null if none available.




2022 vala-language.org