Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusWeightScalePcc.IpcDefines
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusWeightScalePcc.IpcDefines
- Enclosing class:
- AntPlusWeightScalePcc
Defines the keys and values used to communicate between the PCC and plugin.
User code should never have to reference these defines.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Requests advanced weight measurements for the given user from the scale.static final int
Requests a basic weight measurement from the scale.static final int
Requests the capabilities of weight scale and the identifier of the currently 'selected' user profile, if any.static final int
Requests a download of all of the history data from the device.static final String
TheAntPlusWeightScalePcc.WeightScaleRequestStatus
defining the result of the measurement task.static final String
Body weight value, -1 = 'Invalid', null if request was unsuccessful.static final String
TheAntPlusWeightScalePcc.WeightScaleRequestStatus
defining the result of the measurement task.static final String
Body weight value of current broadcast.static final String
TheAntPlusWeightScalePcc.BodyWeightStatus
of the current broadcast.static final String
Indicates if scale supports storage and download of measurement history.static final String
Indicates if scale supports receiving a user profile.static final String
Indicates if a user profile has been 'selected' on the scale.static final String
TheAntPlusWeightScalePcc.WeightScaleRequestStatus
defining the result of the request.static final String
the user identifier of the scale's currently 'selected' user profile, -1 = 'Unassigned'.static final String
TheAntFsCommon.AntFsRequestStatusCode
indicating the result of the request.static final int
Receives the result of an advanced measurement request.static final int
Receives the result of a basic measurement request.static final int
The weight value currently broadcast by the weight scale.static final int
Receives the result of a capabilities request.static final int
static final String
The plugin package path.static final String
The plugin service path. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PATH_ANTPLUS_WEIGHTSCALEPLUGIN_PKG
The plugin package path.- See Also:
-
PATH_ANTPLUS_WEIGHTSCALEPLUGIN_SERVICE
The plugin service path.- See Also:
-
MSG_EVENT_WEIGHTSCALE_whatBASICMEASUREMENTFINISHED
public static final int MSG_EVENT_WEIGHTSCALE_whatBASICMEASUREMENTFINISHEDReceives the result of a basic measurement request.- See Also:
-
MSG_EVENT_WEIGHTSCALE_BASICMEASUREMENTFINISHED_PARAM_intSTATUSCODE
TheAntPlusWeightScalePcc.WeightScaleRequestStatus
defining the result of the measurement task. Sent in theMSG_EVENT_WEIGHTSCALE_whatBASICMEASUREMENTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_BASICMEASUREMENTFINISHED_PARAM_decimalBODYWEIGHT
Body weight value, -1 = 'Invalid', null if request was unsuccessful. Sent in theMSG_EVENT_WEIGHTSCALE_whatBASICMEASUREMENTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_whatADVANCEDMEASUREMENTFINISHED
public static final int MSG_EVENT_WEIGHTSCALE_whatADVANCEDMEASUREMENTFINISHEDReceives the result of an advanced measurement request.- See Also:
-
MSG_EVENT_WEIGHTSCALE_ADVANCEDMEASUREMENTFINISHED_PARAM_intSTATUSCODE
TheAntPlusWeightScalePcc.WeightScaleRequestStatus
defining the result of the measurement task. Sent in theMSG_EVENT_WEIGHTSCALE_whatADVANCEDMEASUREMENTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHED
public static final int MSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHEDReceives the result of a capabilities request.- See Also:
-
MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_intSTATUSCODE
TheAntPlusWeightScalePcc.WeightScaleRequestStatus
defining the result of the request. Sent in theMSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_intUSERPROFILEID
the user identifier of the scale's currently 'selected' user profile, -1 = 'Unassigned'. Sent in theMSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_boolHISTORYSUPPORT
public static final String MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_boolHISTORYSUPPORTIndicates if scale supports storage and download of measurement history. Sent in theMSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_boolUSERPROFILEEXCHANGESUPPORT
public static final String MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_boolUSERPROFILEEXCHANGESUPPORTIndicates if scale supports receiving a user profile. Sent in theMSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_boolUSERPROFILESELECTED
public static final String MSG_EVENT_WEIGHTSCALE_CAPABILITIESREQUESTFINISHED_PARAM_boolUSERPROFILESELECTEDIndicates if a user profile has been 'selected' on the scale. The 'selected' profile is used to calculate advanced body measurements in the absence of an application-provided profile. Sent in theMSG_EVENT_WEIGHTSCALE_whatCAPABILITIESREQUESTFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_whatDOWNLOADALLHISTORYFINISHED
public static final int MSG_EVENT_WEIGHTSCALE_whatDOWNLOADALLHISTORYFINISHEDReceives the result of aAntPlusWeightScalePcc.requestDownloadAllHistory(IDownloadAllHistoryFinishedReceiver, IFitFileDownloadedReceiver, IAntFsProgressUpdateReceiver)
command.- See Also:
-
MSG_EVENT_WEIGHTSCALE_DOWNLOADALLHISTORYFINISHED_PARAM_intSTATUSCODE
TheAntFsCommon.AntFsRequestStatusCode
indicating the result of the request. Sent in theMSG_EVENT_WEIGHTSCALE_whatDOWNLOADALLHISTORYFINISHED
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_whatBODYWEIGHTBROADCAST
public static final int MSG_EVENT_WEIGHTSCALE_whatBODYWEIGHTBROADCASTThe 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.- See Also:
-
MSG_EVENT_WEIGHTSCALE_BODYWEIGHTBROADCAST_PARAM_intBODYWEIGHTSTATUS
TheAntPlusWeightScalePcc.BodyWeightStatus
of the current broadcast. The bodyWeight parameter will only be non-null if this parameter isAntPlusWeightScalePcc.BodyWeightStatus.VALID
. Sent in theMSG_EVENT_WEIGHTSCALE_whatBODYWEIGHTBROADCAST
event.- See Also:
-
MSG_EVENT_WEIGHTSCALE_BODYWEIGHTBROADCAST_PARAM_decimalBODYWEIGHT
Body weight value of current broadcast. Sent in theMSG_EVENT_WEIGHTSCALE_whatBODYWEIGHTBROADCAST
event.- See Also:
-
MSG_CMD_WEIGHTSCALE_whatREQUESTBASICMEASUREMENT
public static final int MSG_CMD_WEIGHTSCALE_whatREQUESTBASICMEASUREMENTRequests a basic weight measurement from the scale.- See Also:
-
MSG_CMD_WEIGHTSCALE_whatREQUESTADVANCEDMEASUREMENT
public static final int MSG_CMD_WEIGHTSCALE_whatREQUESTADVANCEDMEASUREMENTRequests advanced weight measurements for the given user from the scale. The advanced measurements will only be calculated when a valid user profile is available to the weight scale; this requires a scale that supports device profiles, and for a user profile to be provided in this function or for the scale to have a user profile already 'selected'. Note: If you specify a user profile for this request and the weight scale supports user profiles, it should set the given profile as the new 'selected' profile.- See Also:
-
MSG_CMD_WEIGHTSCALE_whatREQUESTCAPABILITIES
public static final int MSG_CMD_WEIGHTSCALE_whatREQUESTCAPABILITIESRequests the capabilities of weight scale and the identifier of the currently 'selected' user profile, if any.- See Also:
-
MSG_CMD_WEIGHTSCALE_whatREQUESTDOWNLOADALLHISTORY
public static final int MSG_CMD_WEIGHTSCALE_whatREQUESTDOWNLOADALLHISTORYRequests a download of all of the history data from the device.- See Also:
-
-
Constructor Details
-
IpcDefines
public IpcDefines()
-