Hello Can any one help me to convert the bluetooth...
# android
t
Hello Can any one help me to convert the bluetooth remove bond java code to Kotlin?
Copy code
Method m = device.getClass().getMethod("removeBond", (Class[]) null);
 m.invoke(device, (Object[]) null);
t
Copy code
device.javaClass.getDeclaredMethod("removeBond")
   .apply{  isAccessible =true }
   .invoke(device)