Foundation · IOS API REFERENCE
LengthFormatter
class · iOS 8.0+ · SDK 27.1
class LengthFormatter
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(): LengthFormatter
Swift declarationinit()
method · iOS 8.0+string
TypeScriptstringFromMeters(numberInMeters: number): string
Swift declarationfunc string(fromMeters numberInMeters: Double) -> String
method · iOS 8.0+string
TypeScriptstringFromValueUnit(value: number, unit: LengthFormatter_Unit): string
Swift declarationfunc string(fromValue value: Double, unit: LengthFormatter.Unit) -> String
method · iOS 8.0+unitString
TypeScriptunitStringFromMetersUsedUnit(numberInMeters: number, unitp?: (SDKHandle) | null): string
Swift declarationfunc unitString(fromMeters numberInMeters: Double, usedUnit unitp: UnsafeMutablePointer<LengthFormatter.Unit>?) -> String
method · iOS 8.0+unitString
TypeScriptunitStringFromValueUnit(value: number, unit: LengthFormatter_Unit): string
Swift declarationfunc unitString(fromValue value: Double, unit: LengthFormatter.Unit) -> String
get · iOS 8.0+isForPersonHeightUse
TypeScriptget isForPersonHeightUse(): boolean
Swift declarationvar isForPersonHeightUse: Bool { get set }
set · iOS 8.0+isForPersonHeightUse
TypeScriptset isForPersonHeightUse(value: boolean)
Swift declarationvar isForPersonHeightUse: 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 →