---
title: powerStateWillChangeTo
framework: kernel
role: symbol
role_heading: Instance Method
path: kernel/iohipointing/1485609-powerstatewillchangeto
---

# powerStateWillChangeTo

## Declaration

```occ
virtual IOReturn powerStateWillChangeTo(IOPMPowerFlags powerFlags, unsigned long newState, IOService *device);
```
