FwupdPlugin.battery_state_to_string
Description: Reference for FwupdPlugin.battery_state_to_string

### Function

# FwupdPluginbattery_state_to_string

#### Declaration [src]

    const gchar*
    fu_battery_state_to_string (
      FuBatteryState battery_state
    )

#### Description [src]

Converts an enumerated type to a string.

Available since: | 1.6.0

#### Parameters

`battery_state` | `FuBatteryState`
| A battery state, e.g. `FU_BATTERY_STATE_FULLY_CHARGED`.

#### Return value

Returns: | `const gchar*`
| A string, or `NULL` for invalid.
| The data is owned by the called function.
| The value is a NUL terminated UTF-8 string.