finishBroadcastWithError(_:)
Stops the broadcast and passes an error back to the broadcasting app.
Declaration
func finishBroadcastWithError(_ error: any Error)Parameters
- error:
An NSError object that is passed back to the broadcasting app through the Broadcastcontroller(_:didfinishwitherror:) method.
Discussion
Call this method in your sample handler when it cannot proceed due to an error.