load(handler:)
Loads a broadcast activity view controller.
Declaration
class func load(handler: @escaping (RPBroadcastActivityViewController?, (any Error)?) -> Void)Parameters
- handler:
A block that is called after the view controller is loaded.
broadcastActivityViewControllerThe
RPBroadcastActivityViewControllerto be presented.errorIf an error occurred, this parameter holds an object that explains the error. Otherwise, the value of this parameter is
nil. See Rprecordingerrorcode for a list of error codes specific to ReplayKit.
Discussion
Present the view controller using present(_:animated:completion:). Dismiss the view controller when the delegate’s broadcastActivityViewController(_:didFinishWith:error:) method is called.