Instance Method

broadcastActivityViewController(_:didFinishWith:error:)

Indicates that the broadcast activity view controller is ready to be dismissed.

Required.

Declaration

func broadcastActivityViewController(_ broadcastActivityViewController: RPBroadcastActivityViewController, didFinishWith broadcastController: RPBroadcastController?, error: Error?)

Parameters

broadcastActivityViewController

Optional. The broadcast activity view controller to be dismissed. When the user cancels service setup, this parameter is nil.

broadcastController

The RPBroadcastController instance used to start and stop broadcasts to a selected service.

error

An RPRecordingErrorDomain error. When a connection to a broadcast service has been set up successfully and the app is ready to broadcast, this parameter is nil.

Discussion

This method is also called after a broadcast has been set up successfully with a broadcast service. Retain a reference to the RPBroadcastController instance contained in the broadcastController parameter to start and stop broadcasting.