Recorder class Sensor Data Source
Recorder for capturing sensor and multimedia logs.
Use a configured RecorderConfiguration to create a Recorder with Recorder.create. The recorder manages recording lifecycle (start, stop, pause, resume), audio/video capture and user metadata. See recorder guides for background permissions and storage recommendations.
The recorded logs can be accessed and managed using RecorderBookmarks and their metadata through LogMetadata.
Constructors
- Recorder.init(int id)
Properties
- activityRecord ← ActivityRecord
-
Attach activity metadata to the current recording.
no getter
- currentRecordPath → String
-
Path to the current log file.
no setter
- diskSpaceUsedPerSecond → int
-
Disk space used per second, in bytes.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- metrics → RecordMetrics
-
Recording performance metrics.
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- recorderConfiguration → RecorderConfiguration
-
The current RecorderConfiguration in use by the recorder.
no setter
- recorderStatus → RecorderStatus
-
Current recorder status.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
{void onComplete(GemError error)?, void onStatusChanged(RecorderStatus status)?}) → EventHandler? - Register callbacks to monitor recorder progress and status changes.
-
addTextMark(
String text) → void - Add a textual annotation (text mark) to the current recording.
-
addUserMetadata(
String key, Uint8List userMetadata) → void - Save arbitrary binary user metadata into the current log.
-
dispose(
) → void -
Disposes the native object.
inherited
-
isAudioRecording(
) → bool - Whether audio capture is currently active.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseRecording(
) → GemError - Pauses an ongoing recording.
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
removeListener(
EventHandler handler) → GemError - Remove a previously registered listener.
-
resumeRecording(
) → GemError - Resumes a paused recording.
-
setRecorderConfiguration(
RecorderConfiguration config) → GemError - Apply a new recorder configuration.
-
startAudioRecording(
) → void - Starts audio capture for the current recording.
-
startRecording(
) → Future< GemError> - Starts the recording session.
-
stopAudioRecording(
) → void - Stops audio capture for the current recording.
-
stopRecording(
) → Future< GemError> - Stops the recording session.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
RecorderConfiguration config) → Recorder - Creates a configured Recorder instance.