Contents

VTPixelRotationSessionInvalidate(_:)

Tears down a pixel rotation session.

Declaration

func VTPixelRotationSessionInvalidate(_ session: VTPixelRotationSession)

Parameters

  • session:

    The pixel rotation session to invalidate.

Discussion

When a pixel rotation session’s retain count reaches zero, the system automatically invalidates it. However, because other processes may retain a session, it can be hard to predict when the invalidation occurs. Calling this function ensures a deterministic, orderly teardown.

See Also

Managing a Session