<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "EnergyKit",
  "identifier" : "/documentation/EnergyKit/ElectricVehicleStatusEvent/ChargingTarget-swift.struct/init(stateOfCharge:estimatedCompletionTime:scheduledStartTime:estimatedRangeAtTarget:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "EnergyKit"
    ],
    "preciseIdentifier" : "s:9EnergyKit26ElectricVehicleStatusEventV14ChargingTargetV13stateOfCharge23estimatedCompletionTime014scheduledStartN00l7RangeAtH0AESi_10Foundation4DateVAlJ11MeasurementVySo12NSUnitLengthCGSgtcfc"
  },
  "title" : "init(stateOfCharge:estimatedCompletionTime:scheduledStartTime:estimatedRangeAtTarget:)"
}
-->

# init(stateOfCharge:estimatedCompletionTime:scheduledStartTime:estimatedRangeAtTarget:)

Creates target information for the desired outcome of charging an electric vehicle.

```
init(stateOfCharge: Int, estimatedCompletionTime: Date, scheduledStartTime: Date, estimatedRangeAtTarget: Measurement<UnitLength>? = nil)
```

## Parameters

`stateOfCharge`

The target state of charge percentage (0-100).

`estimatedCompletionTime`

The estimated time when charging completes.

`scheduledStartTime`

The scheduled time when charging starts.

`estimatedRangeAtTarget`

The estimated range at target state of charge, or `nil` if the range is unavailable.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)