set_pointer_barriers


Description:

public async List<InputCapturePointerBarrier> set_pointer_barriers (owned List<unowned InputCapturePointerBarrier> barriers, Cancellable? cancellable) throws Error

Sets the pointer barriers for this session.

When the request is done, callback will be called. You can then call [ method@InputCaptureSession.set_pointer_barriers_finish] to get the results. The result of this request is the list of pointer barriers that failed to apply - barriers not present in the returned list are active.

Once the pointer barrier is applied (i.e. the reply to the DBus Request has been received), the the [ property@InputCapturePointerBarrier:is-active] property is changed on that barrier. Failed barriers have the property set to a false value.

Parameters:

this

a [class@InputCaptureSession]

barriers

the pointer barriers to apply