Skip to content

AppleWatchDeviceInfo

Information on the Apple Watch itself and the iPhone it is paired with.

This data is collected once every time data collection is started on the watch, and is what links the AWARE device id of the watch to the AWARE device id of the phone.

Inheritance
Annotations

Constructors

AppleWatchDeviceInfo.fromJson

AppleWatchDeviceInfo.fromJson(
  1. Map<String, dynamic> json
)

AppleWatchDeviceInfo.fromRecord

AppleWatchDeviceInfo.fromRecord(
  1. Map<String, dynamic> record
)

Create an AppleWatchDeviceInfo from an AWARE ios_watch_device record.

AppleWatchDeviceInfo

AppleWatchDeviceInfo({
  1. String? deviceId,
  2. DateTime? timestamp,
  3. String? label,
  4. String pairedIosDeviceId = '',
  5. String? name,
  6. String? model,
  7. String? systemName,
  8. String? systemVersion,
  9. String? preferredContentSizeCategory,
})

Properties

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

jsonType

String get jsonType
override

Return the __type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.

model

String? model
getter/setter pair

The model of the watch, e.g. Apple Watch.

name

String? name
getter/setter pair

The name of the watch, as set by the user.

pairedIosDeviceId

String pairedIosDeviceId
getter/setter pair

The AWARE device id of the iPhone this watch is paired with.

preferredContentSizeCategory

String? preferredContentSizeCategory
getter/setter pair

The preferred content size category (i.e., dynamic type setting) on the watch.

systemName

String? systemName
getter/setter pair

The name of the operating system of the watch, e.g. Watch OS.

systemVersion

String? systemVersion
getter/setter pair

The version of the operating system of the watch, e.g. 11.2.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.

toString

String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.