Can I use these CoreGraphics functions from a launch daemon?

From my launch daemon for macOS (written in C++) I need to be able to count the number of monitors currently attached to the system and get some basic specs from the screen(s).

For that I am using the following functions:

  1. CGGetActiveDisplayList or CGGetOnlineDisplayList
  2. CGDisplayIsActive
  3. CGDisplayBounds
  4. CGMainDisplayID

Are they safe to call from a launch daemon? And if not, what shall I use instead?

Can I use these CoreGraphics functions from a launch daemon?
 
 
Q