Aperture.Camera

g Aperture.Camera Aperture.Camera GObject.Object GObject.Object GObject.Object->Aperture.Camera

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

do_flash_async (cancellable, callback, *user_data)

do_flash_finish (result)

set_torch (state)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Aperture.Camera(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Aperture.CameraClass

do_flash_async(cancellable, callback, *user_data)
Parameters:

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.

New in version 0.1.

do_flash_finish(result)
Parameters:

result (Gio.AsyncResult) – a Gio.AsyncResult provided to callback

Raises:

GLib.Error

Returns:

True if the flash was successfully enabled, otherwise False

Return type:

bool

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.

New in version 0.1.

set_torch(state)
Parameters:

state (bool) – True to turn the torch on, or False to turn it off

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.

New in version 0.1.