Contents

stop()

Tells a stream to stop sending updates.

Declaration

func stop() -> CGError

Return Value

kCGErrorSuccess if the stream started, otherwise an appropriate error code.

Discussion

After this call returns, the stream is stopped. When the stream stops, its callback is called with a status of CGDisplayStreamFrameStatus.stopped. You must wait until this callback is received before releasing the display stream object.

It is safe to call this function from within the handler block.

See Also

Functions