set_current_bands_sync


Description:

[ Version ( since = "1.0" ) ]
public bool set_current_bands_sync (ModemBand bands, uint n_bands, Cancellable? cancellable = null) throws Error

Synchronously sets the radio frequency and technology bands 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_bands for the asynchronous version of this method.

Parameters:

this

A Modem.

bands

An array of ModemBand values specifying which bands are allowed.

n_bands

Number of elements in bands.

cancellable

A Cancellable or null.

Returns:

true if the bands were successfully set, false if error is set.