---
title: "setMaximumPower(_:for:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/incar/setmaximumpower(_:for:)"
---

# setMaximumPower(_:for:)

Sets the maximum power for a specific type of charging connector.

## Declaration

```swift
func setMaximumPower(_ power: Measurement<UnitPower>, for chargingConnectorType: INCar.ChargingConnectorType)
```

## Parameters

- `power`: The maximum power in watts that the charging connector supports.
- `chargingConnectorType`: The type of charging connector to update. See doc://com.apple.sirikit/documentation/Intents/INCar/ChargingConnectorType for the types of charging connectors the system supports.

## Discussion

Discussion Call this method for each type of charging connector the electric vehicle supports.

## See Also

### Providing a Charging Connector’s Maximum Power

- [maximumPower(for:)](intents/incar/maximumpower(for:).md)
