Type Definitions
The following type definitions are available globally.
-
Undocumented
See moreDeclaration
Objective-C
typedef struct { // WiFi uint64_t wifiSent; uint64_t wifiReceived; // Cellular uint64_t cellularSent; uint64_t cellularReceived; } SKNetworkDataActivity -
Β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.
Declaration
Objective-C
typedef void (^SKSensorDataHandler)(SKSensorType, SKSensorData *_Nullable, NSError *_Nullable)Swift
typealias SKSensorDataHandler = (SKSensorType, SKSensorData?, (any Error)?) -> VoidParameters
sensorTypeThe type of the sensor producing the SKSensorData object.
sensorDataThe new sensor data produced by the SKSensorType sensor.
errorThis pointer is NULL if an error has occured and sensor data is not available.
View on GitHub
Type Definitions Reference