Reputation: 623
I would like to know how to check if the phone is charging in Java using RoboVM. Not much else to say, question is pretty straightforward.
Upvotes: 0
Views: 37
Reputation: 623
I found the answer to the question on my own. Here is how you get the battery state in RoboVM:
UIDeviceBatteryState batteryState = UIDevice.getCurrentDevice().getBatteryState();
Upvotes: 1