Class ShadowSensor


  • @Implements(android.hardware.Sensor.class)
    public class ShadowSensor
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowSensor()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected float getMaximumRange()  
      static android.hardware.Sensor newInstance​(int type)
      Constructs a Sensor with a given type.
      void setMaximumRange​(float range)
      Sets the return value for Sensor.getMaximumRange().
      void setWakeUpFlag​(boolean wakeup)
      Controls the return value of Sensor.isWakeUpSensor().
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowSensor

        public ShadowSensor()
    • Method Detail

      • newInstance

        public static android.hardware.Sensor newInstance​(int type)
        Constructs a Sensor with a given type.
      • setWakeUpFlag

        public void setWakeUpFlag​(boolean wakeup)
        Controls the return value of Sensor.isWakeUpSensor().
      • setMaximumRange

        public void setMaximumRange​(float range)
        Sets the return value for Sensor.getMaximumRange().
      • getMaximumRange

        @Implementation
        protected float getMaximumRange()