Is Service Available

Check Service Availability

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

bool isRecordingAPIAvailable = ReplayKitManager.IsRecordingAPIAvailable();

Plugin supports 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 IsAvailable()
{
bool isRecordingAPIAvailable = ReplayKitManager.IsRecordingAPIAvailable();
string message = isRecordingAPIAvailable ? "Replay Kit recording API is available!" : "Replay Kit recording API is not available.";
Debug.Log(message);
return isRecordingAPIAvailable;
}