One Logo Pool Ball
Foundation · IOS API REFERENCE

UnitLength

class · iOS 10.0+ · SDK 27.1

class UnitLength

Members (23)

get · iOS 10.0+

astronomicalUnits

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

centimeters

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

decameters

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

decimeters

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

fathoms

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

feet

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

furlongs

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

hectometers

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

inches

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

kilometers

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

lightyears

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

megameters

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

meters

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

micrometers

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

miles

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

millimeters

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

nanometers

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

nauticalMiles

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

parsecs

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

picometers

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

scandinavianMiles

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

yards

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

init

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

Creates a `UnitLength` 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.

UnitLength.init()

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

All Foundation types →