library / dev.bmcreations.scrcast.recorder / RecordingState
RecordingState¶
sealed class RecordingState
Explicit defined state's during a recording session via ScrCast
Types¶
| Name | Summary |
|---|---|
| Delay | Defines when the session is in a non idle, start is currently in a "start delay", with the count of remaining seconds until the start is transferred to either Recording if the session successfully starts, or to Idle with Idle.error being non-null.data class Delay :RecordingState |
| Idle | Defines when the session is idle, either before a first session has started, after a session has ended, or when an error has occurred.data class Idle :RecordingState |
| Paused | Defines when the session is in an active recording, but is currently pausedobject Paused :RecordingState |
| Recording | Defines when the session is in an active recording, non paused stateobject Recording :RecordingState |
Properties¶
| Name | Summary |
|---|---|
| isError | Convenience state query for when the state is Idle and Idle.error is non-null (e.g in an error state)val isError:Boolean |
| isIdle | Convenience state query for when the state is Idle and Idle.error is null (e.g not in an error state)val isIdle:Boolean |
| isInStartDelay | Convenience state query for when the state is Delayval isInStartDelay:Boolean |
| isPaused | Convenience state query for when the state is Pausedval isPaused:Boolean |
| isRecording | Convenience state query for when the state is Recordingval isRecording:Boolean |