set_current_modes_sync


Description:

[ Version ( since = "1.0" ) ]
public bool set_current_modes_sync (ModemMode modes, ModemMode preferred, Cancellable? cancellable = null) throws Error

Synchronously sets the access technologies (e.g. 2G/3G/4G preference) the device is currently allowed to use when connecting to a network.

The calling thread is blocked until a reply is received. See set_current_modes for the asynchronous version of this method.

Parameters:

this

A Modem.

modes

Mask of ModemMode values specifying which modes are allowed.

preferred

A ModemMode value specifying which of the modes given in modes is the preferred one, or NONE if none.

cancellable

A Cancellable or null.

Returns:

true if the allowed modes were successfully set, false if error is set.