bool isBatteryPresent()

Detects whether the device has a battery or not.

Security

Trust Level Required: Low trust

Return

True if the device has a battery, false otherwise