Latest 0.1.0
License Apache2
Platforms ios 10.0
Dependencies com.aware.ios.sensor.core

CI Status

The screen sensor monitors the screen statuses, such as turning on and off, locked and unlocked.


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


iOS 10 or later


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

  1. To install it, simply add the following line to your Podfile:
pod 'com.aware.ios.sensor.wifi'
  1. Import com.aware.ios.sensor.wifi library into your source code.
    import com.aware.ios.sensor.wifi

Example usage

var screenSensor = ScreenSensor.init(ScreenSensor.Config().apply{config in
    config.sensorObserver = Observer()
    // config.debug = true
    config.dbType = .REALM
class Observer:ScreenObserver{
    func onScreenOn() {
        // Your code here ...

    func onScreenOff() {
        // Your code here ...

    func onScreenLocked() {
        // Your code here ...

    func onScreenUnlocked() {
        // Your code here ...


tetujin, [email protected]


Copyright (c) 2018 AWARE Mobile Context Instrumentation Middleware/Framework (

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 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.screen",
    "version": "0.1.0",
    "summary": "A short description of com.aware.ios.sensor.screen.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "",
    "license": {
        "type": "Apache2",
        "file": "LICENSE"
    "authors": {
        "tetujin": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "10.0"
    "swift_version": "4.0",
    "source_files": "com.aware.ios.sensor.screen/Classes/**/*",
    "dependencies": {
        "com.aware.ios.sensor.core": []

Pin It on Pinterest

Share This