There are a lot of answers about how to check if the device is connected on wifi or Data, using:
hasTransport(NetworkCapabilities.TRANSPORT_WIFI/TRANSPORT_CELLULAR)
What is the current non-deprecated way to see if Wifi is enabled (not connected), like:
BluetoothAdapter.getDefaultAdapter().isEnabled