arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

The Ï„ Recorder API

`recorderState`, `isRecording`, `isPaused`, `isStopped`.

hashtag
recorderState, isRecording, isPaused, isStopped

  • Dart API:

  • Dart API:

  • Dart API:

  • Dart API:

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

Example:

</div>

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.

  • recorderStatearrow-up-right
    isRecordingarrow-up-right
    isPausedarrow-up-right
    isStoppedarrow-up-right
    Dart
    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 ...