One Logo Pool Ball
EnergyKit · IOS API REFERENCE

ElectricHVACLoadEvent.Session

struct · iOS 26.0+ · SDK 27.1

struct Session

A session that tracks the event. A session starts when a device transitions from idle to consuming electricity. It’s active when consuming electricity. It ends when the device stops consuming electricity.

Members (4)

get · iOS 26.0+

guidanceState

TypeScript
get guidanceState(): ElectricHVACLoadEvent_Session_GuidanceState
Swift declaration
let guidanceState: ElectricHVACLoadEvent.Session.GuidanceState

Identifies the provided guidance and its usability by the load device

get · iOS 26.0+

id

TypeScript
get id(): string
Swift declaration
let id: UUID

The unique identifier for the session.

init · iOS 26.0+

init

TypeScript
static init(id: string, state: ElectricHVACLoadEvent_Session_State, guidanceState: ElectricHVACLoadEvent_Session_GuidanceState): ElectricHVACLoadEvent_Session
Swift declaration
init(id: UUID, state: ElectricHVACLoadEvent.Session.State, guidanceState: ElectricHVACLoadEvent.Session.GuidanceState)

Creates an electrical load event session. - Parameters: - id: The unique identifier for the session. - state: The state of the session. - guidanceState: Identifies the provided guidance and its usability by the load device

get · iOS 26.0+

state

TypeScript
get state(): ElectricHVACLoadEvent_Session_State
Swift declaration
let state: ElectricHVACLoadEvent.Session.State

The state of the session.

Skipped declarations

No declarations were skipped in this snapshot.

All EnergyKit types →