BananyaDev
BananyaDev

Reputation: 623

How to check if phone is charging in RoboVM?

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

Answers (1)

BananyaDev
BananyaDev

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

Related Questions