# A free sample Mobiler plugin: reads the device battery level. Demonstrates the plugin
# package format used by `mobiler plugin add`. Call it from Rust with:
# cx.plugin("battery", "level", "", |r| Msg::GotBattery(r)) // r.output = "0".."100"
= "battery"
= "Read the device battery level (free sample)"
[]
= ["android/BatteryPlugin.kt"]
= '"battery" to BatteryPlugin(application)'
# No permission needed to read the battery level.
[]
= ["ios/BatteryPlugin.swift"]
= 'case "battery": return await BatteryPlugin.handle(op: op, input: input)'