Turn ON Bluetooth

Hello community!
These days, trying to solve another situation, I found an example where it detects if the Bluetooth is off on the cell phone, and if so, it can turn it on.
I deleted and lost that example and I don't remember how to do it. I don't remember if it was through an extension.
I hope you can help me. Thank you so much

@Gordon_Lu