Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
java.lang.Object |---com.huawei.hihealth.CommonParam |---|---com.huawei.hihealth.StartSportParam public class StartSportParam extends CommonParam |
Parameters that need to be passed transparently for starting an activity.
Since:
2021-11-08
Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
android.os.Parcelable.ClassLoaderCreator, android.os.Parcelable.Creator |
Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
Constructor and Description |
|---|
StartSportParam() Constructor of the parameters for starting an activity. |
StartSportParam(java.lang.String macAddress, int deviceType, int sportType) Constructor of the parameters for starting an activity (FTMP is supported by default). |
StartSportParam(java.lang.String macAddress, int ftmp, int deviceType, int sportType) Constructor of the parameters for starting an activity. |
Modifier and Type | Method and Description |
|---|---|
android.os.Bundle | getValueHolder() Obtains additional data packets. |
void | setValueHolder(android.os.Bundle valueHolder) Sets additional data packets. |
Methods inherited from class com.huawei.hihealth.CommonParam |
|---|
getBoolean, getDouble, getInt, getString, putBoolean, putDouble, putInt, putString |
Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface android.os.Parcelable |
|---|
describeContents, writeToParcel |
public StartSportParam()
Constructor.
public StartSportParam(java.lang.String macAddress, int ftmp, int deviceType, int sportType)
Constructor of parameters for starting an activity.
You need to pass the MAC address, support for FTMP, device type code, and type of the activity to be started on the device.
Parameters:
Parameter Name | Parameter Description |
|---|---|
macAddress | MAC address. The connector is a colon (:) and letters must be capitalized. |
ftmp | CharacteristicConstant.FtmpType Support for FTMP. |
deviceType | CharacteristicConstant.DeviceType Device type code. |
sportType | CharacteristicConstant.EnhanceSportType Type of the activity to be started on the device. |
public StartSportParam(java.lang.String macAddress, int deviceType, int sportType)
Constructor of the parameters for starting an activity (FTMP is supported by default).
You need to pass the MAC address, device type code, and type of the activity to be started on the device.
Parameters:
Parameter Name | Parameter Description |
|---|---|
macAddress | MAC address. The connector is a colon (:) and letters must be capitalized. |
deviceType | CharacteristicConstant.DeviceType Device type code. |
sportType | CharacteristicConstant.EnhanceSportType Type of the activity to be started on the device. |
public android.os.Bundle getValueHolder()
Obtains additional data packets.
Returns:
Additional data packets.
public void setValueHolder(android.os.Bundle valueHolder)
Sets additional data packets.
Parameters:
Parameter Name | Parameter Description |
|---|---|
valueHolder | Additional data packets. |