Programmatically Add/Remove displays on macOS

158 Views Asked by At

I'm looking for an API to add and remove displays to/from the system. I've found the Quartz Display Services, but that API mainly lets you modify existing displays for the sake of fullscreen mode for apps and games.

For example, I would like to (via software) disable a display that's currently plugged in, while it is still plugged in. (Kind of like mounting and unmounting for drives)

0

There are 0 best solutions below