I have some functionality that changes based on the device battery status, i.e. if it is charging/full else running on battery. I'm not trying to find out if the phone is in 'low battery status', only if it is plugged in or not.
Is there a way I can test this with the iOS simulator?