Contents

stopRecording()

Stops recording sensor data.

Declaration

final func stopRecording() async throws

Discussion

The reader must be authorized for the sensor for this to succeed. This stops recording on this device and any paired devices. Sensor recording will continue until the last interested reader has stopped recording.

Example

do {
    try await reader.stopRecording()
} catch {
    print("Failed to stop recording: \(error)")
}