Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created March 28, 2019 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/c6c1c5d354ee05ff46652cfd0465f3b6 to your computer and use it in GitHub Desktop.
Save fitomad/c6c1c5d354ee05ff46652cfd0465f3b6 to your computer and use it in GitHub Desktop.
//
// MARK: - RPPreviewViewControllerDelegate Protocol
//
extension RecorderViewController: RPPreviewViewControllerDelegate
{
/**
El usuario ha terminado con la vista de edición de
la grabación
*/
func previewControllerDidFinish(_ previewController: RPPreviewViewController) -> Void
{
previewController.dismiss(animated: true, completion: nil)
}
/**
El usuario ha terminado con la vista de edición de
la grabación.
Podemos ver los activity types.
*/
func previewController(_ previewController: RPPreviewViewController, didFinishWithActivityTypes activityTypes: Set<String>) -> Void
{
activityTypes.forEach({ (activityType: String) -> Void in
print(activityType)
})
previewController.dismiss(animated: true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment