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#
Copy
public class CameraDeviceManager : IDisposable
Inheritance
CameraDeviceManager
Remarks

This supports the product infrastructure and is not intended to be used directly from 3rd party application code.

Constructors

View Source

CameraDeviceManager()

Initializes a new instance of the CameraDeviceManager class.

Declaration
C#
Copy
public CameraDeviceManager()
API Level: 10

Properties

View Source

IsExternalCameraConnected

Gets the status whether camera device(usb, network) is connected or not.

Declaration
C#
Copy
public bool IsExternalCameraConnected { get; }
Property Value
Type Description
Boolean

true if usb or network camera is connected.

API Level: 10
View Source

SupportedDevices

Retrieves all the supported camera devices and returns its information.

Declaration
C#
Copy
public IEnumerable<CameraDeviceInformation> SupportedDevices { get; }
Property Value
Type Description
IEnumerable<CameraDeviceInformation>

if camera device exist, returns list of CameraDeviceInformation; otherwise returns Enumerable.Empty.

API Level: 10

Methods

View Source

Dispose()

Releases all resources used by the camera.

Declaration
C#
Copy
public void Dispose()
API Level: 10
View Source

Dispose(Boolean)

Releases the unmanaged resources used by the camera.

Declaration
C#
Copy
protected 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
View Source

Finalize()

Finalizes an instance of the Camera class.

Declaration
C#
Copy
protected void Finalize()
View Source

GetDeviceInformation()

Gets the current camera device information. Retrieves all the supported camera devices and returns its information.

Declaration
C#
Copy
public IEnumerable<CameraDeviceInformation> GetDeviceInformation()
Returns
Type Description
IEnumerable<CameraDeviceInformation>

if camera device exist, returns list of CameraDeviceInformation; otherwise returns Enumerable.Empty.

Remarks

This method is only for backward compatibility. Please use SupportedDevices instead.

View Source

GetProductId(CameraDevice)

Gets the product ID for given .

Declaration
C#
Copy
public ushort GetProductId(CameraDevice device)
Parameters
Type Name Description
CameraDevice device
Returns
Type Description
UInt16
API Level: 11
View Source

GetVendorId(CameraDevice)

Gets the vendor ID for given .

Declaration
C#
Copy
public ushort GetVendorId(CameraDevice device)
Parameters
Type Name Description
CameraDevice device
Returns
Type Description
UInt16
API Level: 11

Events

View Source

DeviceConnectionChanged

An event that occurs when camera device is connected or disconnected.

Declaration
C#
Copy
public event EventHandler<CameraDeviceConnectionChangedEventArgs> DeviceConnectionChanged
Event Type
Type Description
EventHandler<CameraDeviceConnectionChangedEventArgs>
API Level: 10

Extension Methods