Latest 0.1.5
Homepage https://github.com/awareframework/com.aware.ios.sensor.accelerometer
License Apache2
Platforms ios 10.0
Dependencies com.aware.ios.sensor.core
Frameworks CoreMotion
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

com.aware.ios.sensor.accelerometer is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'com.aware.ios.sensor.accelerometer'

Example usage

Import Accelerometer sensor library (com_aware_ios_sensor_accelerometer) to your target class.

import com_aware_ios_sensor_accelerometer

Generate an accelerometer sensor instance and start/stop the sensor.

    let accelerometer = Accelerometer.init(Accelerometer.Config().apply{ config in
        config.sensorObserver = { (data, error) in
            // Your code here..
        }
        config.period   = 0.5
        condig.deviceId = UUID.init().uuidString
        config.debug    = true
    })
    accelerometer.start()
    accelerometer.stop()

Author

Yuuki Nishiyama, [email protected]

Latest podspec

{
    "name": "com.aware.ios.sensor.accelerometer",
    "version": "0.1.5",
    "summary": "A short description of com.aware.ios.sensor.accelerometer.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/awareframework/com.aware.ios.sensor.accelerometer",
    "license": {
        "type": "Apache2",
        "file": "LICENSE"
    },
    "authors": {
        "tetujin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/awareframework/com.aware.ios.sensor.accelerometer.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "10.0"
    },
    "swift_version": "4.0",
    "source_files": "com.aware.ios.sensor.accelerometer/Classes/**/*",
    "frameworks": "CoreMotion",
    "dependencies": {
        "com.aware.ios.sensor.core": []
    }
}

Pin It on Pinterest

Share This