SwiftenumHomeEnergyUI
UsageDisplayInterval
enum HomeEnergyUI.UsageDisplayInterval
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Equatable
- protocolSwift.Hashable
- protocolSwift.RawRepresentable
Members 14
- case
case day - case
case month - case
case sixMonths - case
case week - case
case year - func
subinterval() -> Foundation.Calendar.Component - func
toEnergySiteInterval() -> EnergyKitInternal.EnergySite.EnergyUsageTimeInterval - func
toGranularity() -> EnergyKit.ElectricityInsightQuery.Granularity - func
toTrendPeriodGranularity() -> EnergyKit.ElectricityInsightQuery.Granularity - init
init(fromTrendGranularity: EnergyKit.ElectricityInsightQuery.Granularity) -> HomeEnergyUI.UsageDisplayInterval - init
init(from: EnergyKitInternal.EnergySite.EnergyUsageTimeInterval) -> HomeEnergyUI.UsageDisplayInterval - init
init(from: EnergyKit.ElectricityInsightQuery.Granularity) -> HomeEnergyUI.UsageDisplayInterval - typealias
typealias RawValue = Swift.String - var
var coreAnalyticsEnumKey: Int { get }
Header
enum UsageDisplayInterval { case day case week case month case sixMonths case year init(fromTrendGranularity: EnergyKit.ElectricityInsightQuery.Granularity) init(from: EnergyKitInternal.EnergySite.EnergyUsageTimeInterval) init(from: EnergyKit.ElectricityInsightQuery.Granularity) var coreAnalyticsEnumKey: Swift.Int { get } func toEnergySiteInterval() -> EnergyKitInternal.EnergySite.EnergyUsageTimeInterval func subinterval() -> Foundation.Calendar.Component func toGranularity() -> EnergyKit.ElectricityInsightQuery.Granularity func toTrendPeriodGranularity() -> EnergyKit.ElectricityInsightQuery.Granularity }