Can Record (Service Availability)
Check Service Availability
// Create a gif or video recorder instance
IScreenRecorder recorder = ScreenRecorderBuilder.CreateGifRecorder().Build;
bool canRecord = recorder.CanRecord();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;
}Last updated