One Logo Pool Ball
Foundation · IOS API REFERENCE

MassFormatter

class · iOS 8.0+ · SDK 27.1

class MassFormatter

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(): MassFormatter
Swift declaration
init()
method · iOS 8.0+

string

TypeScript
stringFromKilograms(numberInKilograms: number): string
Swift declaration
func string(fromKilograms numberInKilograms: Double) -> String
method · iOS 8.0+

string

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

unitString

TypeScript
unitStringFromKilogramsUsedUnit(numberInKilograms: number, unitp?: (SDKHandle) | null): string
Swift declaration
func unitString(fromKilograms numberInKilograms: Double, usedUnit unitp: UnsafeMutablePointer<MassFormatter.Unit>?) -> String
method · iOS 8.0+

unitString

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

isForPersonMassUse

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

isForPersonMassUse

TypeScript
set isForPersonMassUse(value: boolean)
Swift declaration
var isForPersonMassUse: 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 →