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
-
objectCameraDeviceManager
- Implements
-
System.IDisposable
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()
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Invalid operation. |
System.NotSupportedException | The camera device manager is not supported. |
Properties
View SourceIsExternalCameraConnected
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. |
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Exceptions
Type | Condition |
---|---|
System.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 |
---|---|
System.Collections.Generic.IEnumerable<T><CameraDeviceInformation> | if camera device exist, returns list of CameraDeviceInformation; otherwise returns Enumerable.Empty. |
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Invalid enumeration. |
System.ArgumentNullException | name or id is null. |
System.ObjectDisposedException | The CameraDeviceManager already has been disposed. |
Methods
View SourceDispose()
Releases all resources used by the camera.
Declaration
public void Dispose()
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
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. |
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
~CameraDeviceManager()
Finalizes an instance of the Camera class.
Declaration
protected ~CameraDeviceManager()
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
GetProductId(CameraDevice)
Gets the product ID for given .
Declaration
public ushort GetProductId(CameraDevice device)
Parameters
Type | Name | Description |
---|---|---|
CameraDevice | device |
Returns
Type | Description |
---|---|
ushort |
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Invalid enumeration. |
System.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 |
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Invalid enumeration. |
System.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 |
---|---|
System.EventHandler<TEventArgs><CameraDeviceConnectionChangedEventArgs> |
Remarks
This supports the product infrastructure and is not intended to be used directly from 3rd party application code.
Exceptions
Type | Condition |
---|---|
System.ObjectDisposedException | The CameraDeviceManager already has been disposed. |