Cheese.CameraDeviceMonitor¶
- Subclasses:
None
Methods¶
- Inherited:
GObject.Object (37), Gio.AsyncInitable (4), Gio.Initable (2)
- Structs:
class |
|
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class Cheese.CameraDeviceMonitor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Use the accessor functions below.
- classmethod new()¶
- Returns:
a new
Cheese.CameraDeviceMonitor
object.- Return type:
Returns a new
Cheese.CameraDeviceMonitor
object. The initialization may block. SeeCheese.CameraDeviceMonitor.new_async
() for the asynchronous version.
- classmethod new_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the initialization is finished
Creates a new
Cheese.CameraDeviceMonitor
object asynchronously. Callback will be called when it is done. UseCheese.CameraDeviceMonitor.new_finish
() to get the result.See
Cheese.CameraDeviceMonitor.new
() for the synchronous version.
- classmethod new_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – theGio.AsyncResult
from the callback- Raises:
- Returns:
a new
Cheese.CameraDeviceMonitor
object orNone
if error is set.- Return type:
Finishes creating a new
Cheese.CameraDeviceMonitor
object.
- coldplug()¶
Enumerate plugged in cameras and emit
::added
for those which already exist. This is only required when your program starts, so be sure to connect to at least the::added
signal before calling this function.
- do_added(device) virtual¶
- Parameters:
device (
Cheese.CameraDevice
) –
- do_removed(device) virtual¶
- Parameters:
device (
Cheese.CameraDevice
) –
Signal Details¶
- Cheese.CameraDeviceMonitor.signals.added(camera_device_monitor, device)¶
- Signal Name:
added
- Flags:
- Parameters:
camera_device_monitor (
Cheese.CameraDeviceMonitor
) – The object which received the signaldevice (
Cheese.CameraDevice
) – a newCheese.CameraDevice
representing the video capture device
The
::added
signal is emitted when a camera is added, or on start-up afterCheese.CameraDeviceMonitor.coldplug
() is called.
- Cheese.CameraDeviceMonitor.signals.removed(camera_device_monitor, device)¶
- Signal Name:
removed
- Flags:
- Parameters:
camera_device_monitor (
Cheese.CameraDeviceMonitor
) – The object which received the signaldevice (
Cheese.CameraDevice
) – theCheese.CameraDevice
that was removed
The
::removed
signal is emitted when a camera is unplugged, or disabled on the system.