From wiki.ginstr.com
Jump to: navigation, search

gn:act_getAndroidBatteryLevel(TU1)

Description
Action that retrieves the remaining battery capacity as an integer percentage of total capacity (with no fractional part).
Action returns
void

Action signatures

Get battery level

[gn:act_getAndroidBatteryLevel]|[target]
Parameter Description
target target widget where the result will be stored

Example

[gn:act_getAndroidBatteryLevel]|[@+id/batteryLevel]