hammerspoon2-docs
    Preparing search index...

    Function batteryInfo

    • Returns a snapshot of all available battery information, or null if no battery is present.

      Returns Record<string, any> | null

      An object with battery fields, or null if no battery is present.