A view displaying a broadcast button that, when tapped, shows a broadcast picker.


class RPSystemBroadcastPickerView : UIView


Add this view to your view hierarchy to let users broadcast directly from your app. When a user taps the broadcast button, it displays a broadcast picker, allowing the user to select a broadcast provider.

You can limit the picker to a particular broadcast provider by setting preferredExtension to the bundle identifier of a broadcast extension. You can also show or hide the microphone button displayed in the picker by setting the showsMicrophoneButton property. Set these properties before presenting RPSystemBroadcastPickerView, as shown here:

class ViewController: UIViewController {

    @IBOutlet var containerView: UIView!
    override func viewDidLoad() {
        let broadcastPicker = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width: 50, height: 50))
        broadcastPicker.preferredExtension = "com.your-app.broadcast.extension"



Configuring the Broadcast Picker

var preferredExtension: String?

A bundle identifier of a broadcast extension.

var showsMicrophoneButton: Bool

A Boolean value that indicates whether the microphone button is visible in the broadcast picker.

See Also

Live Broadcast Implementation

class RPBroadcastActivityViewController

An object that displays a user interface where users choose a broadcast service.

class RPBroadcastConfiguration

An object used to configure the movie clips produced during a live broadcast.