Type Definitions

The following type definitions are available globally.

  • Undocumented

    See more

    Declaration

    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)?) -> Void

    Parameters

    sensorType

    The type of the sensor producing the SKSensorData object.

    sensorData

    The new sensor data produced by the SKSensorType sensor.

    error

    This pointer is NULL if an error has occured and sensor data is not available.