Contents

showBroadcastPicker(at:from:preferredExtensionIdentifier:completionHandler:)

Presents a list of available broadcast services for the user to select.

Declaration

class func showBroadcastPicker(at point: CGPoint, from window: NSWindow?, preferredExtensionIdentifier preferredExtension: String?, completionHandler handler: @escaping  @Sendable (RPBroadcastActivityController?, (any Error)?) -> Void)
class func showBroadcastPicker(at point: CGPoint, from window: NSWindow?, preferredExtensionIdentifier preferredExtension: String?) async throws -> RPBroadcastActivityController

Parameters

  • point:

    The origin point within the specified window.

  • window:

    The window presenting the picker. Specify Nil 227m0 to present the picker from the main app window.

  • preferredExtension:

    The extension bundle identifier for the preferred broadcast extension service. Specify Nil 227m0 to show all extensions.

  • handler:

    The system calls this closure after the user selects a broadcast extension. The system passes the closure the selected broadcast activity controller, or an error if a failure occurred.

Discussion