copyStream(withStreamID:)
Returns the stream for a stream ID.
Declaration
func copyStream(withStreamID streamID: Int) throws -> IOUSBHostStreamParameters
- streamID:
A stream ID in the range of 1 to n. Retrieve n can by calling Iousbgetendpointmaxstreams(_:_:_:) with the Iousbendpointdescriptor.
Return Value
A pointer to an IOUSBHostStream; otherwise, nil if the device or the underlying host controller doesn’t support the specified stream ID.
Discussion
Call enableStreams() before this method.