Is there any API to check bluetooth settings on iOS

I’m testing an app which requires enable/disable of bluetooth. Is there any API to do this on iPhone?