Top | ![]() |
![]() |
![]() |
![]() |
void | aperture_camera_do_flash_async () |
gboolean | aperture_camera_do_flash_finish () |
void | aperture_camera_set_torch () |
ApertureCamera represents a camera plugged into the device. It is used to query information about the camera or change its parameters.
void aperture_camera_do_flash_async (ApertureCamera *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Activates the flash associated with this camera. When this is done,
callback
will be called.
The flash will be turned off automatically, usually after a few hundred milliseconds (depending on the model of the flash device). The callback is called while the flash is still on.
self |
||
cancellable |
a GCancellable. |
[nullable] |
callback |
a GAsyncReadyCallback to execute upon completion |
|
user_data |
closure data for |
Since: 0.1
gboolean aperture_camera_do_flash_finish (ApertureCamera *self
,GAsyncResult *result
,GError **error
);
Gets the result of an operation started by aperture_camera_do_flash_async()
.
You should call this in your callback if you want to know whether the
operation succeeded; if you don't care, there is no need to call this
function.
Since: 0.1
void aperture_camera_set_torch (ApertureCamera *self
,gboolean state
);
Turns the torch associated with this camera on or off.
Typically, flash bulbs have two modes: flash and torch. Flash is brighter, but only lasts for a few hundred milliseconds. Torch is not as bright but can be left on indefinitely.
Since: 0.1