Interface AntPlusWeightScalePcc.IBodyWeightBroadcastReceiver

Enclosing class:
AntPlusWeightScalePcc

public static interface AntPlusWeightScalePcc.IBodyWeightBroadcastReceiver
Receiver for the BodyWeightBroadcast event, which is: The weight value currently broadcast by the weight scale. This event is useful for dynamic value scale and specialized scenarios, but most applictions should preferably use the request methods for greater conveniences.
  • Method Details

    • onNewBodyWeightBroadcast

      void onNewBodyWeightBroadcast(long estTimestamp, EnumSet<EventFlag> eventFlags, AntPlusWeightScalePcc.BodyWeightStatus bodyWeightStatus, BigDecimal bodyWeight)
      Receives the data from a BodyWeightBroadcast event.
      Parameters:
      estTimestamp - The estimated timestamp of when this event was triggered. Useful for correlating multiple events and determining when data was sent for more accurate data records.
      eventFlags - Informational flags about the event.
      bodyWeightStatus - The AntPlusWeightScalePcc.BodyWeightStatus of the current broadcast. The bodyWeight parameter will only be non-null if this parameter is AntPlusWeightScalePcc.BodyWeightStatus.VALID.
      bodyWeight - Body weight value of current broadcast. Units: Kg.