Skip to content
Ahmed Fathi Bekhit edited this page Nov 6, 2017 · 2 revisions

Protocol

RecordARDelegate

RecordARDelegate protocol defines the methods triggered when the video recorder status change.


Topics

Handling the video recorder when it ends

func recorder(didEndRecording path:URL, with noError:Bool)

A protocol method that is triggered when a recorder ends recording.

  • path: A URL object that returns the video file path.
  • noError: A boolean that returns true when the recorder ends without errors. Otherwise, it returns false.

Handling the video recorder when it fails

func recorder(didFailRecording error:Error?, and status:String)

A protocol method that is triggered when a recorder fails recording.

  • error: An Error object that returns the error value.
  • status: A string that returns the reason of the recorder failure in a string literal format.

Handling the recorder when application resigns active

func recorder(willEnterBackground status:RecordARStatus)

A protocol method that is triggered when the application will resign active.

  • status: A RecordARStatus object that returns the AR recorder current status.
NOTE

Check applicationWillResignActive(_:) for more information.