Cross Platform Screen Recorder Kit
  • Introduction
  • Installation
  • Version 2 vs Version 1
  • Plugin Structure
    • Settings
    • Folder Paths
  • API
    • Create
    • Can Record (Service Availability)
    • Register Listeners
    • Is Recording
    • Is Paused or Recording
    • Prepare Recording
    • Start Recording
    • Stop Recording
    • Open Recording
    • Discard Recording
    • Save Recorded Video
    • Share Recorded Video
    • Flush
  • Limitations
    • Android
  • Misc
    • Using in Native Android Projects (UaaL)
  • Upgrades
    • 2.4.2
    • 2.4.1
    • 2.4.0
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.7.0
    • 1.6
    • 1.5
  • Release Notes
    • 2.4.2
    • 2.4.1
    • 2.4.0
    • 2.3.1
    • 2.3.0
    • 2.2.0
    • 2.1.0
    • 2.0.0
    • 1.7.0
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.0
Powered by GitBook
On this page

Was this helpful?

  1. API

Is Paused or Recording

Learn how to know if a preview is available

Check if a recording is currently paused or recording.

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

Example

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() && !recorder.IsRecording())
    {
        Debug.Log("Currently an active recording exists and is paused state.");            
    }
    else
    {
        Debug.Log("No active recording exists.");
    }
}

PreviousIs RecordingNextPrepare Recording

Last updated 4 months ago

Was this helpful?