Class CameraDeviceManager
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Camera.dll
- API Level:
- 10
This CameraDeviceManager class provides methods to control current camera devices and get its information.
C#Copypublic 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
Declaration
C#Copypublic CameraDeviceManager()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Invalid operation. |
NotSupportedException | The camera device manager is not supported. |
API Level: 10
Properties
IsExternalCameraConnected
Gets the status whether camera device(usb, network) is connected or not.
Declaration
C#Copypublic bool IsExternalCameraConnected { get; }
Property Value
Type | Description |
---|---|
Boolean | true if usb or network camera is connected. |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The CameraDeviceManager already has been disposed. |
API Level: 10
SupportedDevices
Retrieves all the supported camera devices and returns its information.
Declaration
C#Copypublic 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. |
API Level: 10
Methods
Declaration
C#Copypublic void Dispose()
API Level: 10
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 10
Declaration
C#Copyprotected void Finalize()
Events
DeviceConnectionChanged
An event that occurs when camera device is connected or disconnected.
Declaration
C#Copypublic event EventHandler<CameraDeviceConnectionChangedEventArgs> DeviceConnectionChanged
Event Type
Type | Description |
---|---|
EventHandler<CameraDeviceConnectionChangedEventArgs> |
Exceptions
Type | Condition |
---|---|
ObjectDisposedException | The CameraDeviceManager already has been disposed. |