One Logo Pool Ball
EnergyKit · IOS API REFERENCE

ElectricityGuidance.Value

struct · iOS 26.0+ · SDK 27.1

struct Value

A normalized weighting value associated with a period of time, describing when to shift or reduce electricity use.

Members (3)

get · iOS 26.0+

rating

TypeScript
get rating(): number
Swift declaration
let rating: Double

The 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 · iOS 26.0+

interval

TypeScript
get interval(): _Foundation_DateInterval
Swift declaration
let interval: DateInterval

The interval to which the electrical guidance applies.

init · iOS 26.0+

init

TypeScript
static init(interval: _Foundation_DateInterval, rating: number): ElectricityGuidance_Value
Swift declaration
init(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.

Skipped declarations

No declarations were skipped in this snapshot.

All EnergyKit types →