hasBattery

Return

True if the terminal is battery powered. Note that this only indicates the presence of a battery, not if the terminal is running on battery power or is plugged in.