Wish include setting maxReportLatencyUs in PhoneSensors library

Discussion in 'Bugs & wishlist' started by dcoun, Apr 16, 2018 at 8:15 AM.

  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