大佬教程收集整理的这篇文章主要介绍了swift3 – 现在可以在iOS 11上录制屏幕吗?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
RPScreenRecorder:共享记录器对象,提供记录应用程序的音频和视频的功能.
通过本课程,您可以录制您的应用程序屏幕,并通过iPhone麦克风绑定Audion.
以下是一些可用于记录具有不同不同选项的屏幕的方法.
访问共享记录器:
class func shared()
控制应用程序录制:
-- Starts recording the app display. func startRecording(handler: ((Error?) -> Void)? = nil) -- Stops the current recording. func stopRecording(handler: ((RPPreviewViewController?,Error?) -> Void)? = nil) -- Starts screen and audio capture. func startCapture(handler: ((CMSampleBuffer,RPSampleBufferType,Error?) -> Void)?,completionHandler: ((Error?) -> Void)? = nil) -- Stops screen capture func stopCapture(handler: ((Error?) -> Void)? = nil)
希望这可以帮助您捕捉应用中的屏幕.
参考链接:https://developer.apple.com/documentation/replaykit/rpscreenrecorder
以上是大佬教程为你收集整理的swift3 – 现在可以在iOS 11上录制屏幕吗?全部内容,希望文章能够帮你解决swift3 – 现在可以在iOS 11上录制屏幕吗?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。