Skip to main content
TypesTypes reference

Every type you can import from @darkgrade/slate, as its source declares it, on 5 pages. This page names every one and links to where it is documented field by field.

import type { CameraCapabilities, Photo } from '@darkgrade/slate'
PageTypesWhat is on it
Option types14The types you pass to Camera: its constructor options, and the options and choices of its methods.
Result types18The types Camera hands back: what each method resolves to, what an event carries, and what recover() reports.
Capability types12The types that say what the connected camera is and can do now: what getCapabilities() returns, what setControl takes, and which model was identified.
Setting value types38One type per setting: the values its getter returns and its setter takes, with the types the typed getters and setters are declared with.
Workflow, protocol and runtime types30The types around Camera: the workflows built on it, the connection under it, and the host that shares cameras between callers.

A field ending in ? may be absent: Slate leaves out what a camera does not report, and never guesses it.

Option types

The types you pass to Camera: its constructor options, and the options and choices of its methods. Open option types.

Options

FocusDirection · FocusStepSize · PhotoDestination · TakePhotoOptions · LiveViewFrameOptions · ZoomDirection · ZoomOptions · ZoomSpeed · MediaDownloadOptions · MediaPreviewSize · CameraEventHandler · CameraEventName · CameraOptions · ConnectOptions

Result types

The types Camera hands back: what each method resolves to, what an event carries, and what recover() reports. Open result types.

Results

FocusNudge · FocusResult · CardPhoto · ComputerPhoto · Photo · Clip · FocusFrame · LiveViewFrame · LiveViewOverlay · CardStatus · MediaItem · Battery · CameraInfo · DiscoveredCamera · RecoveryReport

Recovery

CameraRecoveryOptions · CameraRecoveryReport · CameraRecoveryStep

Capability types

The types that say what the connected camera is and can do now: what getCapabilities() returns, what setControl takes, and which model was identified. Open capability types.

Capabilities and controls

CameraRecordingState · OperationAvailability · CameraCapabilities · CameraControlId · CameraControlInputs · CameraControlState · CameraControlSession · UnrecognizedValues · CameraLens

Identification

VerifiedFeature · CameraIdentification · CameraIdentityCandidate

Setting value types

One type per setting: the values its getter returns and its setter takes, with the types the typed getters and setters are declared with. Open setting value types.

Setting values

Aperture · AspectRatio · AudioRecording · ColorTemperature · DetectionSubject · DigitalZoom · DriveMode · ExposureCompensation · ExposureMode · ExposureModeAlias · EyeSelection · FlashMode · FocusArea · FocusMode · FrameRate · Iso · JpegQuality · LiveViewQuality · MeteringMode · PhotoFormat · PhotoSize · PhotoVideoMode · PictureProfile · PictureStyle · RawCompression · ShutterSpeed · SubjectDetection · ContinuousAutofocus · VideoFormat · VideoQuality · WhiteBalance

Typed settings

SettingInput · SettingValue · TypedSettingId · TypedSettingMethods

Exposure time

ExposureTime · ExposureTimeInput · ExposureContext

Workflow, protocol and runtime types

The types around Camera: the workflows built on it, the connection under it, and the host that shares cameras between callers. Open workflow, protocol and runtime types.

Workflows

BenchmarkCheck · BenchmarkOptions · QualificationCamera · QualificationSetting · VideoTakeState · TakeCamera · TakeCameraState · TakeMedia · ShotAnalysis · ShotMetrics · ShotSetupReport · ShotProperty · CameraPower · CameraPowerAssessment

Protocol and transport

ObjectInfo · DeviceDescriptor · TransportInterface · OperationParams · OperationResponse · EventParams · TransactionPolicy · PTPProtocolViolation · LoggerConfig

Runtime

CameraClient · CameraProvider · OperationReply · OperationFile · OperationInput · SurfaceOperation · OwnershipStore

⌘I