SwiftenumHomeEnergyUI

enum HomeEnergyUI.UsageDisplayInterval

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 14

  1. casecase day
  2. casecase month
  3. casecase sixMonths
  4. casecase week
  5. casecase year
  6. funcsubinterval() -> Foundation.Calendar.Component
  7. functoEnergySiteInterval() -> EnergyKitInternal.EnergySite.EnergyUsageTimeInterval
  8. functoGranularity() -> EnergyKit.ElectricityInsightQuery.Granularity
  9. functoTrendPeriodGranularity() -> EnergyKit.ElectricityInsightQuery.Granularity
  10. initinit(fromTrendGranularity: EnergyKit.ElectricityInsightQuery.Granularity) -> HomeEnergyUI.UsageDisplayInterval
  11. initinit(from: EnergyKitInternal.EnergySite.EnergyUsageTimeInterval) -> HomeEnergyUI.UsageDisplayInterval
  12. initinit(from: EnergyKit.ElectricityInsightQuery.Granularity) -> HomeEnergyUI.UsageDisplayInterval
  13. typealiastypealias RawValue = Swift.String
  14. varvar coreAnalyticsEnumKey: Int { get }
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
}