# OsPowerSource

`import { OsPowerSource } from "destack:os/binding";`

Operating-system power source.

```ds title="OsPowerSource"
export enum OsPowerSource {
    External = 1,
    Battery = 2,
    Unknown = 3,
}
```

[language/library/src/os/binding/power.ds:4:11](https://github.com/destack-sh/destack/blob/main/language/library/src/os/binding/power.ds#L4-L11)

## Variants

### `External = 1`

External line power is active.

### `Battery = 2`

Battery power is active.

### `Unknown = 3`

Power source is unknown.
