Initialize the GuidanceState for the ``ElectricVehicleLoadEvent``
- Parameters:
- wasFollowingGuidance: Whether the device was applying ``ElectricityGuidance``
for its energy use at the time of the event.
- guidanceToken: The token provided at time of ``ElectricityGuidance`` fetch.
get · iOS 26.0+
wasFollowingGuidance
TypeScript
get wasFollowingGuidance(): boolean
Swift declaration
let wasFollowingGuidance: Bool
A Boolean value that indicates whether the device was applying the electricity guidance
at the time of the event.
get · iOS 26.0+
guidanceToken
TypeScript
get guidanceToken(): string
Swift declaration
var guidanceToken: UUID
The guidance token for the guidance that you requested.
set · iOS 26.0+
guidanceToken
TypeScript
set guidanceToken(value: string)
Swift declaration
var guidanceToken: UUID
The guidance token for the guidance that you requested.