Wish include setting maxReportLatencyUs in PhoneSensors library

Discussion in 'Bugs & wishlist' started by dcoun, Apr 16, 2018.

  1. dcoun

    dcoun Member Licensed User

    The android has also the following call to register a sensor:

    boolean registerListener (SensorEventListener listener,
    Sensor sensor,
    int samplingPeriodUs,
    int maxReportLatencyUs)

    The maxReportLatencyUs can be used to set the interval in reporting of a sensor. This can be higher than second and it helps to reduce power consumption in sensors like a pedometer.
    Probably, in addition of Initialize2, we need an Initialize3 with maxReportLatencyUs added.
    Also it will be helpful to have added the constant values TYPE_STEP_COUNTER and TYPE_STEP_DETECTOR and probably others that do not exist.

    Thank you in advance
     
  2. dcoun

    dcoun Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice