Contents

CGDisplayIOServicePort(_:)

Returns the I/O Kit service port of the specified display.

Declaration

func CGDisplayIOServicePort(_ display: CGDirectDisplayID) -> io_service_t

Parameters

  • display:

    The identifier of the display to be accessed.

Return Value

The I/O Kit service port for the specified display.

Discussion

An I/O Kit service port can be passed to I/O Kit to obtain additional information about the display.

The port is owned by the graphics system and should not be destroyed.

See Also

Functions