Пример #1
0
    public void DidTapSend()
    {
        // Set the subject line for the email message
        ReplayKitUnity.MailSubjectText = MailSubjectLine;

        // Show the email/iOS share sheet
        ReplayKitUnity.ShowEmailShareSheet();
    }
Пример #2
0
    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;
        }
    }