Foundation · IOS API REFERENCE
EnergyFormatter
class · iOS 8.0+ · SDK 27.1
class EnergyFormatter
Members (12)
method · iOS 8.0+getObjectValue
TypeScriptgetObjectValue(string: string): { $ret: boolean; $out: { "obj": (unknown) | null; "error": (NSString) | null } }
Swift declarationfunc 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.
initinit
TypeScriptstatic init(): EnergyFormatter
Swift declarationinit()
method · iOS 8.0+string
TypeScriptstringFromJoules(numberInJoules: number): string
Swift declarationfunc string(fromJoules numberInJoules: Double) -> String
method · iOS 8.0+string
TypeScriptstringFromValueUnit(value: number, unit: EnergyFormatter_Unit): string
Swift declarationfunc string(fromValue value: Double, unit: EnergyFormatter.Unit) -> String
method · iOS 8.0+unitString
TypeScriptunitStringFromJoulesUsedUnit(numberInJoules: number, unitp?: (SDKHandle) | null): string
Swift declarationfunc unitString(fromJoules numberInJoules: Double, usedUnit unitp: UnsafeMutablePointer<EnergyFormatter.Unit>?) -> String
method · iOS 8.0+unitString
TypeScriptunitStringFromValueUnit(value: number, unit: EnergyFormatter_Unit): string
Swift declarationfunc unitString(fromValue value: Double, unit: EnergyFormatter.Unit) -> String
get · iOS 8.0+isForFoodEnergyUse
TypeScriptget isForFoodEnergyUse(): boolean
Swift declarationvar isForFoodEnergyUse: Bool { get set }
set · iOS 8.0+isForFoodEnergyUse
TypeScriptset isForFoodEnergyUse(value: boolean)
Swift declarationvar isForFoodEnergyUse: Bool { get set }
get · iOS 8.0+numberFormatter
TypeScriptget numberFormatter(): (NumberFormatter) | null
Swift declaration@NSCopying var numberFormatter: NumberFormatter! { get set }
set · iOS 8.0+numberFormatter
TypeScriptset numberFormatter(value: (NumberFormatter) | null)
Swift declaration@NSCopying var numberFormatter: NumberFormatter! { get set }
get · iOS 8.0+unitStyle
TypeScriptget unitStyle(): Formatter_UnitStyle
Swift declarationvar unitStyle: Formatter.UnitStyle { get set }
set · iOS 8.0+unitStyle
TypeScriptset unitStyle(value: Formatter_UnitStyle)
Swift declarationvar unitStyle: Formatter.UnitStyle { get set }
Skipped declarations
No declarations were skipped in this snapshot.
All Foundation types →