One Logo Pool Ball
Foundation · IOS API REFERENCE

UnitEnergy

class · iOS 10.0+ · SDK 27.1

class UnitEnergy

Members (6)

get · iOS 10.0+

calories

TypeScript
static get calories(): UnitEnergy
Swift declaration
@NSCopying class var calories: UnitEnergy { get }
get · iOS 10.0+

joules

TypeScript
static get joules(): UnitEnergy
Swift declaration
@NSCopying class var joules: UnitEnergy { get }
get · iOS 10.0+

kilocalories

TypeScript
static get kilocalories(): UnitEnergy
Swift declaration
@NSCopying class var kilocalories: UnitEnergy { get }
get · iOS 10.0+

kilojoules

TypeScript
static get kilojoules(): UnitEnergy
Swift declaration
@NSCopying class var kilojoules: UnitEnergy { get }
get · iOS 10.0+

kilowattHours

TypeScript
static get kilowattHours(): UnitEnergy
Swift declaration
@NSCopying class var kilowattHours: UnitEnergy { get }
init · iOS 16.0+

init

TypeScript
static init(forLocale: Locale, usage?: MeasurementFormatUnitUsage<UnitEnergy>): UnitEnergy
Swift declaration
convenience init(forLocale: Locale, usage: MeasurementFormatUnitUsage<UnitEnergy> = .general)

Creates a `UnitEnergy` which the specified `locale` prefers for the specific `usage`.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UnitEnergy.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Foundation types →