Home > @magiclane/maps-sdk > Recorder > addUserMetadata
Recorder.addUserMetadata() method
Save arbitrary binary user metadata into the current log.
Attach a binary blob under the provided string key. Call before stopping the recording so the data is included in the saved log.
Signature:
addUserMetadata(key: string, userMetadata: Uint8Array): void;Parameters
Parameter | Type | Description |
|---|---|---|
key | string | The string identifier for the metadata entry. |
userMetadata | Uint8Array | Binary data to store (as Uint8Array). |
Returns:
void