DVFakeCameraBackend class final
A camera the test drives.
- Implemented types
Constructors
- DVFakeCameraBackend({DVCameraCapabilities capabilities = const DVCameraCapabilities(lenses: <DVCameraLens>{DVCameraLens.back, DVCameraLens.front}, flash: true, torch: true, photo: true, video: true, preview: true, videoQualities: <DVVideoQuality>{DVVideoQuality.hd720}), bool autoConfirm = true})
Properties
- autoConfirm → bool
-
Confirms every request at once, as a working device would.
final
-
calls
→ List<
String> -
final
- capabilities → DVCameraCapabilities
-
final
- disposed ↔ bool
-
getter/setter pair
-
events
→ Stream<
DVCameraEvent> -
no setteroverride
-
flashes
→ List<
DVFlashMode> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOpen ↔ bool
-
getter/setter pair
-
opened
→ List<
DVCameraLens> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Closes the device. Confirmed by DVCameraClosed.
override
-
dispose(
) → Future< void> -
override
-
emit(
DVCameraEvent event) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
DVCameraLens lens) → Future< void> -
Opens
lensand starts the preview. Confirmed by DVCameraOpened.override -
setTorch(
bool on) → Future< void> -
override
-
startRecording(
String path, {DVVideoQuality quality = DVVideoQuality.hd720, bool audio = true}) → Future< void> -
Records into
path. Confirmed by DVCameraRecordingStarted.override -
stopRecording(
) → Future< void> -
Confirmed by DVCameraRecordingStopped once the file is finalised.
override
-
takePhoto(
String path, {DVFlashMode flash = DVFlashMode.off}) → Future< void> -
Writes a JPEG into
path, which exists and is private. Confirmed by DVCameraPhotoTaken.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited