Package com.dsi.ant.plugins.antplus.pcc
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 Summary
Modifier and TypeMethodDescriptionvoid
onNewBodyWeightBroadcast
(long estTimestamp, EnumSet<EventFlag> eventFlags, AntPlusWeightScalePcc.BodyWeightStatus bodyWeightStatus, BigDecimal bodyWeight) Receives the data from a BodyWeightBroadcast event.
-
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
- TheAntPlusWeightScalePcc.BodyWeightStatus
of the current broadcast. The bodyWeight parameter will only be non-null if this parameter isAntPlusWeightScalePcc.BodyWeightStatus.VALID
.bodyWeight
- Body weight value of current broadcast. Units: Kg.
-