One Logo Pool Ball
Foundation · IOS API REFERENCE

EnergyFormatter

class · iOS 8.0+ · SDK 27.1

class EnergyFormatter

Members (12)

method · iOS 8.0+

getObjectValue

TypeScript
getObjectValue(string: string): { $ret: boolean; $out: { "obj": (unknown) | null; "error": (NSString) | null } }
Swift declaration
func getObjectValue(_ obj: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for string: String, errorDescription error: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool

Omit the output parameters from the call. The result contains $ret and $out, with obj, error inside $out.

init

init

TypeScript
static init(): EnergyFormatter
Swift declaration
init()
method · iOS 8.0+

string

TypeScript
stringFromJoules(numberInJoules: number): string
Swift declaration
func string(fromJoules numberInJoules: Double) -> String
method · iOS 8.0+

string

TypeScript
stringFromValueUnit(value: number, unit: EnergyFormatter_Unit): string
Swift declaration
func string(fromValue value: Double, unit: EnergyFormatter.Unit) -> String
method · iOS 8.0+

unitString

TypeScript
unitStringFromJoulesUsedUnit(numberInJoules: number, unitp?: (SDKHandle) | null): string
Swift declaration
func unitString(fromJoules numberInJoules: Double, usedUnit unitp: UnsafeMutablePointer<EnergyFormatter.Unit>?) -> String
method · iOS 8.0+

unitString

TypeScript
unitStringFromValueUnit(value: number, unit: EnergyFormatter_Unit): string
Swift declaration
func unitString(fromValue value: Double, unit: EnergyFormatter.Unit) -> String
get · iOS 8.0+

isForFoodEnergyUse

TypeScript
get isForFoodEnergyUse(): boolean
Swift declaration
var isForFoodEnergyUse: Bool { get set }
set · iOS 8.0+

isForFoodEnergyUse

TypeScript
set isForFoodEnergyUse(value: boolean)
Swift declaration
var isForFoodEnergyUse: Bool { get set }
get · iOS 8.0+

numberFormatter

TypeScript
get numberFormatter(): (NumberFormatter) | null
Swift declaration
@NSCopying var numberFormatter: NumberFormatter! { get set }
set · iOS 8.0+

numberFormatter

TypeScript
set numberFormatter(value: (NumberFormatter) | null)
Swift declaration
@NSCopying var numberFormatter: NumberFormatter! { get set }
get · iOS 8.0+

unitStyle

TypeScript
get unitStyle(): Formatter_UnitStyle
Swift declaration
var unitStyle: Formatter.UnitStyle { get set }
set · iOS 8.0+

unitStyle

TypeScript
set unitStyle(value: Formatter_UnitStyle)
Swift declaration
var unitStyle: Formatter.UnitStyle { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →