# Is Paused or Recording

Check if a recording is currently paused or recording.

```csharp
IScreenRecorder.IsPausedOrRecording(); //Can call with IScreenRecorder instance
```

Example

<pre class="language-csharp"><code class="lang-csharp">IScreenRecorder recorder;
//...
public void CheckStates()
{
    if(recorder.IsRecording())
    {
        Debug.Log("Currently an active recording exists and is in recording state.");
    }
    else if(recorder.IsPausedOrRecording())
    {
        Debug.Log("Currently an active recording exists and is either paused or in recording state.");
    }
    else if(recorder.IsPausedOrRecording() &#x26;&#x26; !recorder.IsRecording())
    {
<strong>        Debug.Log("Currently an active recording exists and is paused state.");            
</strong>    }
    else
    {
        Debug.Log("No active recording exists.");
    }
}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.replaykit.voxelbusters.com/api/is-preview-available.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
