@lock


Description:

[ Version ( since = "0.1.8" ) ]
public async bool @lock (Cancellable? cancellable) throws Error

Locks the device so we can use it.

Parameters:

this

a Sensor instance.

cancellable

a Cancellable, or null

callback

the function to run on completion

user_data

the data to pass to callback