Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//
// 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
You can’t perform that action at this time.