# The τ Recorder API

## `recorderState`, `isRecording`, `isPaused`, `isStopped`

* Dart API: [recorderState](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/recorderState.html)
* Dart API: [isRecording](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/isRecording.html)
* Dart API: [isPaused](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/isPaused.html)
* Dart API: [isStopped](https://github.com/Canardoux/tau/tree/6bd245d293bcf9a123677735835549585d32b2ee/doc/pages/tau-api/recorder/pages/flutter-sound/api/recorder/FlutterSoundRecorder/isStopped.html)

This four attributs is used when the app wants to get the current Audio State of the recorder.

`recorderState` is an attribut which can have the following values :

* isStopped   /// Recorder is stopped
* isRecording   /// Recorder is recording
* isPaused    /// Recorder is paused
* isRecording is a boolean attribut which is `true` when the recorder is in the "Recording" mode.
* isPaused is a boolean atrribut which  is `true` when the recorder is in the "Paused" mode.
* isStopped is a boolean atrribut which  is `true` when the recorder is in the "Stopped" mode.

*Example:*

[Dart](#dart)

[Javascript](#javascript)

```

        switch(myRecorder.recorderState)
        {
                case RecorderState.isRecording: doSomething; break;
                case RecorderState.isStopped: doSomething; break;
                case RecorderState.isPaused: doSomething; break;
        }
        ...
        if (myRecorder.isStopped) doSomething;
        if (myRecorder.isRecording) doSomething;
        if (myRecorder.isPaused) doSomething;
```

```

        Lorem ipsum ...
```

\</div>
