public void DidTapSend() { // Set the subject line for the email message ReplayKitUnity.MailSubjectText = MailSubjectLine; // Show the email/iOS share sheet ReplayKitUnity.ShowEmailShareSheet(); }
void Start() { // Set the time you are allowing the user to record gameplay ReplayKitUnity.AllowedTimeToRecord = TimeToRecord; // Tells ReplayKit to use a default interface that is excluded in playback ReplayKitUnity.ShowDefaultButtonUI(); // Subscribe to the ReplayKit callbacks if (ReplayKitUnity.IsScreenRecorderAvailable) { ReplayKitUnity.Instance.onStopScreenCaptureWithFile += OnStopCallback; ReplayKitUnity.Instance.onStartScreenCapture += OnStartRecording; } }