The ReplayKit was introduced in iOS 9.0 +, and it's trivial to add to your projects. What's more, it's not just for games – you can record any kind of app just fine. I should add, though, that the recording quality is fairly low, so it's not worth trying to record fine details.
ReplayKit also does few cool things for you:
- It automatically asks the user for permission to start recording the first time you try.
- While recording no system user interface is shown, which means you can't see messages coming in from other apps.
- When users stop recording, they'll get the chance to preview their recording, make changes, save it to their devices and share it – your app doesn't get an access to the recording. But you can find out if a user has saved or shared the recording.
You will find full implementation examples below.
Before you begin
Make sure you've activated ReplayKit inside IOS Native Pro Editor setting window. You can bring the settings window using Unity main menu:
Stan's Assets -> IOS Native -> Editor Settings
Scroll down to the ReplayKit framework, and make sure it's enabled as shown with the image below:
That's it, you are good to go now, and may proceed to a next article.