Contents

startRecording()

Starts recording sensor data.

Declaration

final func startRecording() async throws

Discussion

The reader must be authorized for the sensor for this to succeed. This starts recording on this device and any paired devices. If other readers have already started the sensor recording this reader’s interest in recording will be maintained. Other readers in other apps for the same sensor will not affect the recording status of this reader.

Example

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