Receive Proximity Sensor Status

Is it possible to query the camera for the proximity sensor status?

I would like to get this without needing to check that all the data of the sensor is invalid => sensor triggered.