Class CameraDeviceManager
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Camera.dll
This CameraDeviceManager class provides methods to control current camera devices and get its information.
public class CameraDeviceManager : IDisposable
- Inheritance
-
CameraDeviceManager
- Implements
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Constructors
View SourceCameraDeviceManager()
Initializes a new instance of the CameraDeviceManager class.
Declaration
public CameraDeviceManager()
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | Invalid operation. |
| NotSupportedException | The camera device manager is not supported. |
Properties
View SourceIsCameraDeviceManagerSupported
Gets the state of Camera Device Manager support.
Declaration
public static bool IsCameraDeviceManagerSupported { get; }
Property Value
| Type | Description |
|---|---|
| bool | true if camera device manager is supported. |
IsExternalCameraConnected
Gets the status whether camera device(usb, network) is connected or not.
Declaration
public bool IsExternalCameraConnected { get; }
Property Value
| Type | Description |
|---|---|
| bool | true if usb or network camera is connected. |
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The CameraDeviceManager already has been disposed. |
SupportedDevices
Retrieves all the supported camera devices and returns its information.
Declaration
public IEnumerable<CameraDeviceInformation> SupportedDevices { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<CameraDeviceInformation> | if camera device exist, returns list of CameraDeviceInformation; otherwise returns Enumerable.Empty. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Invalid enumeration. |
| ArgumentNullException | name or id is null. |
| ObjectDisposedException | The CameraDeviceManager already has been disposed. |
Methods
View SourceDispose()
Releases all resources used by the camera.
Declaration
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the camera.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
~CameraDeviceManager()
Finalizes an instance of the Camera class.
Declaration
protected ~CameraDeviceManager()
GetProductId(CameraDevice)
Gets the product ID for given .
Declaration
public ushort GetProductId(CameraDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| CameraDevice | device |
Returns
| Type | Description |
|---|---|
| ushort |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Invalid enumeration. |
| ObjectDisposedException | The CameraDeviceManager already has been disposed. |
GetVendorId(CameraDevice)
Gets the vendor ID for given .
Declaration
public ushort GetVendorId(CameraDevice device)
Parameters
| Type | Name | Description |
|---|---|---|
| CameraDevice | device |
Returns
| Type | Description |
|---|---|
| ushort |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | Invalid enumeration. |
| ObjectDisposedException | The CameraDeviceManager already has been disposed. |
Events
View SourceDeviceConnectionChanged
An event that occurs when camera device is connected or disconnected.
Declaration
public event EventHandler<CameraDeviceConnectionChangedEventArgs> DeviceConnectionChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<CameraDeviceConnectionChangedEventArgs> |
Exceptions
| Type | Condition |
|---|---|
| ObjectDisposedException | The CameraDeviceManager already has been disposed. |