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 <literal>"MCCMNC"</literal>, where <literal>MCC</literal> is the three-digit ITU E.212 Mobile Country Code and <literal>MNC</literal> is the two- or three-digit GSM Mobile Network Code. e.g. e<literal> "31026"</literal> or <literal>"310260"</literal>.

If the <literal>MCC</literal> and <literal>MNC</literal> 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.</warning>

Parameters:

this

A Modem3gpp.

Returns:

The operator code, or null if none available.