SKSensorDataHandler Block Reference

Declared in SKSensorDataHandler.h

Block Definition

SKSensorDataHandler

Βlock to be invoked when new sensor data is available. You can cast the sensorData object into the actual sensor data (e.g. SKAccelerometerData), based on the reported sensorType.

typedef void (^SKSensorDataHandler) (SKSensorType sensorType, SKSensorData *__nullable sensorData, NSError *__nullable error)

Declared In

SKSensorDataHandler.h