`recorderState`, `isRecording`, `isPaused`, `isStopped`.
The τ Recorder API
recorderState
, isRecording
, isPaused
, isStopped
- Dart API: recorderState
- Dart API: isRecording
- Dart API: isPaused
- Dart API: isStopped
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:
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 ...