finishBroadcast(handler:)
Stops the current broadcast.
Declaration
func finishBroadcast(handler: @escaping ((any Error)?) -> Void)Parameters
- handler:
A block that is called after the broadcast has finished.
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
Use this method when the user is finished with a broadcast. To temporarily pause a broadcast, use pauseBroadcast().