rating
TypeScriptget rating(): numberSwift declarationlet rating: DoubleThe relative impact of using electricity during this period of time. Values are normalized between zero and one. A lower value indicates cleaner energy usage.
struct · iOS 26.0+ · SDK 27.1
struct ValueA normalized weighting value associated with a period of time, describing when to shift or reduce electricity use.
get rating(): numberSwift declarationlet rating: DoubleThe relative impact of using electricity during this period of time. Values are normalized between zero and one. A lower value indicates cleaner energy usage.
get interval(): _Foundation_DateIntervalSwift declarationlet interval: DateIntervalThe interval to which the electrical guidance applies.
static init(interval: _Foundation_DateInterval, rating: number): ElectricityGuidance_ValueSwift declarationinit(interval: DateInterval, rating: Double)Creates an interval with the specified date and rating. - Parameters: - interval: The interval to which the electrical guidance applies. - rating: The relative impact of using electricity during this period of time.
No declarations were skipped in this snapshot.