jpProximity

jpProximity

jpProximity
Version : 2.0
Prix : $25
Etat : Épuiséipadiphone

Téléchargements

Liste des modifications

v2.0

  • Now compatible with ShiVa 2.0.
  • Compiled for Mac and Linux in addition to Windows, so you can now use it while working with ShiVa Editor for each of these operating systems.
  • Now uses a user token instead of an email to activate

v1.1

  • Optimized for ShiVa 1.9.2

API

--jpProximity API jpProximity.activate ( sUserToken, sActivationKey ) bProximity = jpProximity.getProximityState ( ) bEnabled = jpProximity.isProximityMonitoringEnabled ( ) bAvailable = jpProximity.isProximitySensorAvailable ( ) jpProximity.setProximityMonitoringEnabled ( bEnabled ) --User notification events: "onProximityStateDidChange" ( bProximity )

Description

Ask for the state of the proximity sensor and get notified when the state changes. It automatically turns the screen black when the proximity state is 'true'

Requirements

  • The jpEventQueue plugin is required (free)