stop

abstract suspend fun stop(): Recording?(source)

Stops capturing, finishes the file and completes chunks.

Return

the finished file, or null when the session had no CaptureConfig.file or captured no audio at all (the empty file is deleted).