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.CameraDeviceMonitorobject.- Return type:
Returns a new
Cheese.CameraDeviceMonitorobject. The initialization may block. SeeCheese.CameraDeviceMonitor.new_async() for the asynchronous version.
- classmethod new_async(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.CancellableorNone) – aGio.CancellableorNonecallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the initialization is finished
Creates a new
Cheese.CameraDeviceMonitorobject 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.AsyncResultfrom the callback- Raises:
- Returns:
a new
Cheese.CameraDeviceMonitorobject orNoneif error is set.- Return type:
Finishes creating a new
Cheese.CameraDeviceMonitorobject.
- coldplug()¶
Enumerate plugged in cameras and emit
::addedfor those which already exist. This is only required when your program starts, so be sure to connect to at least the::addedsignal before calling this function.
- do_added(device) virtual¶
- Parameters:
device (
Cheese.CameraDevice) –
invoked when a new video capture device is connected
- do_removed(device) virtual¶
- Parameters:
device (
Cheese.CameraDevice) –
invoked when a video capture device is removed
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.CameraDevicerepresenting the video capture device
The
::addedsignal 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.CameraDevicethat was removed
The
::removedsignal is emitted when a camera is unplugged, or disabled on the system.