This version of Unity is unsupported.

ReplayKit.isRecording

public static bool isRecording;

Description

A boolean that indicates whether ReplayKit is making a recording (where True means a recording is in progress). (Read Only)