WearableDeviceEvent
@frozen
public enum WearableDeviceEvent : TypedNotification
Notifications of this type are fired to indicate various events related to a wearable device.
-
Indicates that the
deviceInformationproperty was updated.Declaration
Swift
case didUpdateDeviceInformation(DeviceInformation) -
Indicates that the
wearableDeviceInformationproperty was updated.Declaration
Swift
case didUpdateWearableDeviceInformation(WearableDeviceInformation) -
Indicates that the
sensorInformationproperty was updated.Declaration
Swift
case didUpdateSensorInformation(SensorInformation) -
Indicates that the
sensorConfigurationproperty was updated.Declaration
Swift
case didUpdateSensorConfiguration(SensorConfiguration) -
Indicates that the requested change to the device’s sensor configuration succeeded. A subsequent
.didUpdateSensorConfigurationevent 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
SensorDispatchobject is recommended instead.Declaration
Swift
case didReceiveSensorData(SensorData) -
Indicates that the
gestureInformationproperty was updated.Declaration
Swift
case didUpdateGestureInformation(GestureInformation) -
Indicates that the
gestureConfigurationproperty was updated.Declaration
Swift
case didUpdateGestureConfiguration(GestureConfiguration) -
Indicates that the requested change to the device’s gesture configuration succeeded. A subsequent
.didUpdateGestureConfigurationevent 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
SensorDispatchobject 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
WearableDeviceEvent Enumeration Reference