Public Member Functions

  • EventManagerAndroid (android_app *nativeApp, std::function< void()> deferredMainFn, std::function< void()> cleanupLaunchFn)
  • ~EventManagerAndroid ()
  • getNativeApp ()
  • getAppImplInst ()
  • bool
    isAccelerometerAvailable () const
  • bool
    isMagneticFieldAvailable () const
  • bool
    isGyroscopeAvailable () const
  • bool
    isGravityAvailable () const
  • bool
    isRotationVectorAvailable () const
  • void
    enableAccelerometer (SensorCallbackFn updateFn, int32_t usec=-1)
  • void
    enableMagneticField (SensorCallbackFn updateFn, int32_t usec=-1)
  • void
    enableGyroscope (SensorCallbackFn updateFn, int32_t usec=-1)
  • void
    enableGravity (SensorCallbackFn updateFn, int32_t usec=-1)
  • void
    enableRotationVector (SensorCallbackFn updateFn, int32_t usec=-1)
  • void
    setActivityGainedFocusCallback (std::function< void()> fn)
  • void
    clearActivityGainedFocusCallback ()
  • void
    setActivityLostFocusCallback (std::function< void()> fn)
  • void
    clearActivityLostFocusCallback ()
  • void
    disableAccelerometer ()
  • void
    disableMagneticField ()
  • void
    disableGyroscope ()
  • void
    disableGravity ()
  • void
    disableRotationVector ()
  • void
    execute ()

Static Public Member Functions


Friends

  • friend class
  • friend void
    dbg_log_sensor (const std::string &name, const std::shared_ptr< EventManagerAndroid::Sensor > &sensor)