Contents

startCapture(completionHandler:)

Starts the stream with a callback to indicate whether it successfully starts.

Declaration

func startCapture(completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)
func startCapture() async throws

Parameters

  • completionHandler:

    A completion handler that provides an error if the stream fails to start.

See Also

Starting and stopping a stream