Prepare Recording

This shows the required permissions and gets everything ready for actual recording. Before calling this method make sure you set the microphone status or any other kind of settings ahead.

ReplayKitManager.PrepareRecording();

Once after calling PrepareRecording, you can go ahead with StartRecording.

It's not mandatory to call PrepareRecording before StartRecording as StartRecording will internally call prepare if it's not done . PrepareRecording helps in cases where you want to show the recording permissions a head so that you inform the user about the recording permissions or to avoid any flickering when using vuforia/AR frameworks at the time of recording.

Example

public void PrepareRecording()
{
ReplayKitManager.SetMicrophoneStatus(true);
ReplayKitManager.PrepareRecoring();
}