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

Can Record (Service Availability)

Check Service Availability

Check if Screen Recorder Kit features can be used. As the functionality needs required support from the hardware, it's always good to check this before calling any of the other plugin methods.

// Create a gif or video recorder instance
IScreenRecorder recorder = ScreenRecorderBuilder.CreateGifRecorder().Build;
bool canRecord = recorder.CanRecord();

Gif recording is supported on all platforms.

Video Recording is supported only on mobile platforms Android (API 21 and above), iOS(9 and above - iPhone 5S or later, iPad mini 2 or later, iPod Touch 6th generation, iPad Air or later.)

Example

public bool CanRecord()
{
	IScreenRecorder recorder = ScreenRecorderBuilder.CreateGifRecorder().Build();
	//or
	//IScreenRecorder recorder = ScreenRecorderBuilder.CreateVideoRecorder(new VideoRecorderRuntimeSettings()).Build();

	bool canRecord  =  recorder.CanRecord();

	string message  = canRecord ? "Screen Recorder Kit recording API is available!" : "Screen Recorder Kit recording API is not available.";

	Debug.Log(message);
	return canRecord;
}
PreviousCreateNextRegister Listeners

Last updated 4 months ago

Was this helpful?