One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKDevice

class · iOS 9.0+ · SDK 27.1

class HKDevice

Members (10)

static · iOS 9.0+

local

TypeScript
static local(): HKDevice
Swift declaration
class func local() -> HKDevice
init · iOS 9.0+

init

TypeScript
static init(name?: (string) | null, manufacturer?: (string) | null, model?: (string) | null, hardwareVersion?: (string) | null, firmwareVersion?: (string) | null, softwareVersion?: (string) | null, localIdentifier?: (string) | null, UDIDeviceIdentifier?: (string) | null): HKDevice
Swift declaration
init(name: String?, manufacturer: String?, model: String?, hardwareVersion: String?, firmwareVersion: String?, softwareVersion: String?, localIdentifier: String?, udiDeviceIdentifier UDIDeviceIdentifier: String?)
get · iOS 9.0+

udiDeviceIdentifier

TypeScript
get udiDeviceIdentifier(): (string) | null
Swift declaration
var udiDeviceIdentifier: String? { get }
get · iOS 9.0+

firmwareVersion

TypeScript
get firmwareVersion(): (string) | null
Swift declaration
var firmwareVersion: String? { get }
get · iOS 9.0+

hardwareVersion

TypeScript
get hardwareVersion(): (string) | null
Swift declaration
var hardwareVersion: String? { get }
get · iOS 9.0+

localIdentifier

TypeScript
get localIdentifier(): (string) | null
Swift declaration
var localIdentifier: String? { get }
get · iOS 9.0+

manufacturer

TypeScript
get manufacturer(): (string) | null
Swift declaration
var manufacturer: String? { get }
get · iOS 9.0+

model

TypeScript
get model(): (string) | null
Swift declaration
var model: String? { get }
get · iOS 9.0+

name

TypeScript
get name(): (string) | null
Swift declaration
var name: String? { get }
get · iOS 9.0+

softwareVersion

TypeScript
get softwareVersion(): (string) | null
Swift declaration
var softwareVersion: String? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKDevice.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All HealthKit types →