enable_sync


Description:

[ Version ( since = "1.0" ) ]
public bool enable_sync (Cancellable? cancellable = null) throws Error

Synchronously tries to enable the Modem.

When enabled, the modem's radio is powered on and data sessions, voice calls, location services, and Short Message Service may be available.

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

Parameters:

this

A Modem.

cancellable

A Cancellable or null.

Returns:

true if the modem was properly enabled, false if error is set.