Contents

CGReleaseDisplayFadeReservation(_:)

Releases a display fade reservation, and unfades the display if needed.

Declaration

func CGReleaseDisplayFadeReservation(_ token: CGDisplayFadeReservationToken) -> CGError

Parameters

  • token:

    The current fade reservation token to be released. On return, the reservation token is no longer valid and should be discarded.

Return Value

A result code. See Core Graphics Data Types and Constants.

Discussion

If you call this function while an asynchronous fade operation is running, there are two possible outcomes:

  • If the ending blend value is kCGDisplayBlendNormal, the fade operation is allowed to run to completion.

  • If the ending blend value is not kCGDisplayBlendNormal, the fade operation is terminated immediately and the display is returned to normal.

In both cases, the reservation is actually released when the fade operation completes.

See Also

Functions