change_pin_sync


Description:

[ Version ( since = "1.0" ) ]
public bool change_pin_sync (string old_pin, string new_pin, Cancellable? cancellable = null) throws Error

Synchronously changes the PIN code in the SIM card.

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

Parameters:

this

A Sim.

old_pin

The current PIN code.

new_pin

The new PIN code to be set.

cancellable

A Cancellable or null.

Returns:

true if the operation succeeded, false if error is set.