stop()
Tells a stream to stop sending updates.
Declaration
func stop() -> CGErrorReturn 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
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()