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

CI Status
Version
License
Platform

Requirements

iOS 10 or later.

Installation

com.aware.ios.sensor.locations is available through CocoaPods.

  1. To install it, simply add the following line to your Podfile:
pod 'com.aware.ios.sensor.locations'
  1. Open your project ( *.xcworkspace ) and add NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription to Info.plist.

  2. Import com.aware.ios.sensor.locations library into your source code.
    import com.aware.ios.sensor.locations

Example usage

// To initialize the sensor
let locationSensor = LocationsSensor.init(LocationsSensor.Config().apply{config in
    config.sensorObserver = Observer()
    config.debug = true
    config.dbType = DatabaseType.REALM
    // more configuration...
})
// To start the sensor
locationSensor?.start()

// To stop the sensor
locationSensor?.stop()
class Observer:LocationsObserver {
    func onLocationChanged(data: LocationsData) {
        // your code here
    }
}

Author

Yuuki Nishiyama, [email protected]

License

Copyright (c) 2018 AWARE Mobile Context Instrumentation Middleware/Framework (http://www.awareframework.com)

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Latest podspec

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

Pin It on Pinterest

Share This