Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement BleManager.disableBluetooth() ? #1174

Closed
matheusjardimb opened this issue Feb 29, 2024 · 1 comment
Closed

Implement BleManager.disableBluetooth() ? #1174

matheusjardimb opened this issue Feb 29, 2024 · 1 comment

Comments

@matheusjardimb
Copy link

matheusjardimb commented Feb 29, 2024

I see there is an BleManager.enableBluetooth() option in the docs, but I'd like to be able to disable BT as well (I'm implementing a toggle in my app).

I couldn't find any related code nor previous issues about this. Would it be possible to implement?

Amazing lib, btw :)

@marcosinigaglia
Copy link
Member

The enable/disable function is deprecated, the method enableBluetooth uses ACTION_REQUEST_ENABLE. https://developer.android.com/reference/android/bluetooth/BluetoothAdapter#enable()

@marcosinigaglia marcosinigaglia closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants