Skip to main content

Basic Usage

That’s it! The Camera class automatically detects your camera’s brand and uses the appropriate vendor-specific implementation. No configuration needed.

How It Works

When you call connect(), Darkgrade Link:
  1. Scans for connected USB devices
  2. Identifies the camera’s vendor ID
  3. Selects the appropriate vendor-specific implementation:
    • Sony ⍺ SeriesSonyCamera with live view, video recording, SDIO
    • Nikon Z SeriesNikonCamera with extended properties
    • Canon EOS R SeriesCanonCamera with remote control
    • Other PTP CamerasGenericCamera with standard PTP operations
  4. Enables vendor-specific features automatically

Common Examples

Camera Settings

Event Handling

Live View

Capture live view frames (Sony & Nikon only):

Video Recording

Start and stop video recording (Sony & Canon only):

File Management

List and download files from the camera:

Advanced Property Access

Access vendor-specific properties directly:

Advanced Usage

Using Vendor-Specific Classes

Import vendor-specific camera classes directly:

Manual Configuration

Specify device filters and logging options:

Next Steps