Contents

CGDisplayIsMain(_:)

Returns a Boolean value indicating whether a display is the main display.

Declaration

func CGDisplayIsMain(_ display: CGDirectDisplayID) -> boolean_t

Parameters

  • display:

    The identifier of the display to be accessed.

Return Value

If true, the specified display is currently the main display; otherwise, false.

Discussion

For information about the characteristics of a main display, see CGMainDisplayID().

See Also

Functions