WearableDeviceEvent
@frozen
public enum WearableDeviceEvent : TypedNotification
Notifications of this type are fired to indicate various events related to a wearable device.
-
Indicates that the
deviceInformation
property was updated.Declaration
Swift
case didUpdateDeviceInformation(DeviceInformation)
-
Indicates that the
wearableDeviceInformation
property was updated.Declaration
Swift
case didUpdateWearableDeviceInformation(WearableDeviceInformation)
-
Indicates that the
sensorInformation
property was updated.Declaration
Swift
case didUpdateSensorInformation(SensorInformation)
-
Indicates that the
sensorConfiguration
property was updated.Declaration
Swift
case didUpdateSensorConfiguration(SensorConfiguration)
-
Indicates that the requested change to the device’s sensor configuration succeeded. A subsequent
.didUpdateSensorConfiguration
event will be received with the new value.Declaration
Swift
case didWriteSensorConfiguration
-
Indicates that a requested change to the device’s sensor configuration failed with the associated error.
Declaration
Swift
case didFailToWriteSensorConfiguration(Error)
-
Indicates that sensor data was received. While it is possible to listen for these events to get sensor data, using a
SensorDispatch
object is recommended instead.Declaration
Swift
case didReceiveSensorData(SensorData)
-
Indicates that the
gestureInformation
property was updated.Declaration
Swift
case didUpdateGestureInformation(GestureInformation)
-
Indicates that the
gestureConfiguration
property was updated.Declaration
Swift
case didUpdateGestureConfiguration(GestureConfiguration)
-
Indicates that the requested change to the device’s gesture configuration succeeded. A subsequent
.didUpdateGestureConfiguration
event will be received with the new value.Declaration
Swift
case didWriteGestureConfiguration
-
Indicates that a requested change to the device’s gesture configuration failed with the associated error.
Declaration
Swift
case didFailToWriteGestureConfiguration(Error)
-
Indicates that gesture data was received. While it is possible to listen for these events to get gesture data, using a
SensorDispatch
object is recommended instead.Declaration
Swift
case didReceiveGestureData(GestureData)
-
Indicates that the wearable sensor service was suspended for the specified reason. On certain devices, certain user-initiated activities cause the wearable sensor service to be suspended due to bandwidth or processing restrictions.
Declaration
Swift
case didSuspendWearableSensorService(SuspensionReason)
-
Indicates that the wearable sensor service was resumed. On certain devices, certain user-initiated activities cause the wearable sensor service to be suspended due to bandwidth or processing restrictions.
Declaration
Swift
case didResumeWearableSensorService