|
Maps SDK for C++ 1.0.0
|
Object definition to interact with the recorder. More...


Classes | |
| struct | __allow_private_constructor |
Public Member Functions | |
| void | startAudioRecording () |
| Starts audio recording. | |
| void | stopAudioRecording () |
| Stops audio recording. | |
| bool | isAudioRecording () |
| Checks if audio recording is in progress. | |
| int | startRecording () |
| Starts the recording. | |
| int | stopRecording () |
| Stops the recording. | |
| int | pauseRecording () |
| Pauses the recording. | |
| int | resumeRecording () |
| Resumes the recording. | |
| int | setConfiguration (gem::RecorderConfigurationPtr configuration) |
| Updates the recorder settings. | |
| gem::RecorderConfigurationPtr | getConfiguration () const |
| Retrieves the current configuration of the recorder. | |
| int | addListener (ProgressListener listener) |
| Adds a listener to monitor recording progress. | |
| int | removeListener (ProgressListener listener) |
| Removes a registered listener. | |
| ERecorderStatus | getStatus () |
| Retrieves the current recorder status. | |
| String | getCurrentRecordPath () |
| Gets the path to the current log file. | |
| LargeUnsignedInteger | addUserData (LargeUnsignedInteger dataTypeIdentifier, const DataBuffer &userData) |
| Records custom user data with the current session. | |
| void | addUserMetadata (const String &key, const DataBuffer &userMetadata) |
| This method allows adding a user-defined key-value pair to the log metadata. | |
| void | addBitmap (StrongPointer< IBitmap > bitmap) |
| Saves a bitmap in the log metadata. | |
| void | addTextMark (const String &report) |
| Adds a textual annotation (text mark) at the current position in the log. | |
| void | setActivityRecord (const ActivityRecord &activityRecord) |
| Sets the details of the recorded activity. | |
| long | diskSpaceUsedPerSecond () const |
| Space used, in bytes, for 1 sec of log recording. | |
| RecordMetrics | getMetrics () |
| Retrieves the metrics for the currently active recording session. | |
Static Public Member Functions | |
| static StrongPointer< Recorder > | produce (gem::RecorderConfigurationPtr config={}) |
| Creates a new recorder object. | |
Protected Types | |
| using | Base = ApiObject<IRecorder, false> |
| The base class. | |
Object definition to interact with the recorder.
Records navigation and sensor sessions.
Captures sensor and navigation data streams into logs that can be saved, replayed, or analyzed later.Useful for debugging and offline testing.
|
inline |
Saves a bitmap in the log metadata.
This method allows adding an image represented as a bitmap to the log metadata. The bitmap must be provided as a strong pointer and will be included in the final log. Call this method before stopping the recording to ensure the bitmap is saved in the log.
| [in] | bitmap | The bitmap to be recorded. It must be a valid, non-null strong pointer to an IBitmap object. |
|
inline |
Adds a listener to monitor recording progress.
| [in] | listener | The listener to register. |
|
inline |
Adds a textual annotation (text mark) at the current position in the log.
| report | The text content of the annotation. |
|
inline |
Records custom user data with the current session.
| [in] | dataTypeIdentifier | Identifier for the data type. |
| [in] | userData | The data buffer to record. |
|
inline |
This method allows adding a user-defined key-value pair to the log metadata.
The key is a string identifier, and the value is a buffer containing the associated data. This method must be called before stopping the recording to ensure the metadata is saved in the final log.
| [in] | key | The string identifier for the metadata. Must be unique within the log. |
| [in] | userMetadata | The buffer containing the custom metadata to be recorded. |
|
inline |
Space used, in bytes, for 1 sec of log recording.
|
inline |
Retrieves the current configuration of the recorder.
This method provides access to the current configuration used by the recorder. The returned configuration reflects the parameters set during initialization or any subsequent modifications made via setConfiguration(). This can be useful for verifying the recorder's setup or for debugging purposes.
|
inline |
Gets the path to the current log file.
|
inline |
Retrieves the metrics for the currently active recording session.
|
inline |
Retrieves the current recorder status.
|
inline |
Checks if audio recording is in progress.
|
inline |
Pauses the recording.
Initiates the process of pausing the recording and transitions the recorder status to Pausing first. If the pause operation is successful, the status will change to Paused. A notification is issued upon successful pause.
|
inlinestatic |
Creates a new recorder object.
| [in] | config | The configuration structure used to initialize the recorder. This parameter is optional and defaults to an empty configuration if not provided. |
This static method instantiates a Recorder object based on the provided configuration. If no configuration is supplied (i.e., config is empty), the recorder will not be ready to start recording. In this case, the setConfiguration method must be called with a valid configuration before invoking startRecording(). Failure to set a valid configuration will result in startRecording() returning KInvalidInput.
|
inline |
Removes a registered listener.
| [in] | listener | The listener to be removed. |
|
inline |
Resumes the recording.
Initiates the process of resuming the recording and transitions the recorder status to Resuming first. If the resume operation is successful, the status will change back to Recording. A notification is issued upon successful resume.
|
inline |
Sets the details of the recorded activity.
Call this method before stopping the record.
| activityRecord | An ActivityRecord object containing the details of the activity to be set. |
|
inline |
Updates the recorder settings.
Stops the recorder, updates its settings, and restarts it.
| [in] | configuration | The new recorder configuration. |
|
inline |
Starts audio recording.
Resumes audio recording only if a recording is currently active and audio recording is enabled (bEnableAudio in the configuration).
|
inline |
Starts the recording.
Initiates the recording process and transitions the recorder status to Starting first. If the start is successful, the status will change to Recording. A notification is issued upon successful start. If the operation fails, an error code is returned.
|
inline |
Stops audio recording.
Suspends audio recording only if a recording is currently active and audio recording is enabled (bEnableAudio in the configuration).
|
inline |
Stops the recording.
Stops the recording process and transitions the recorder status to Stopping first. If the stop is successful (i.e., the recording duration meets the minLogDuration), the status will change to Stopped. A notification is issued upon successful stop. If bContinuousRecording is set to true and the recording reaches the chunk duration, the status will transition to Restarting instead of Stopped, and a new recording session will begin automatically.