java.lang.Object |---com.huawei.hihealth.CommonParam |---|---com.huawei.hihealth.StartSportParam public class StartSportParam extends CommonParam |
开始运动需要透传的参数
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() 开始运动参数构造函数 |
StartSportParam(java.lang.String macAddress, int deviceType, int sportType) 开始运动参数构造函数(FTMP默认支持) |
StartSportParam(java.lang.String macAddress, int ftmp, int deviceType, int sportType) 开始运动参数构造函数 |
Modifier and Type | Method and Description |
|---|---|
android.os.Bundle | getValueHolder() 获取额外数据包 |
void | setValueHolder(android.os.Bundle valueHolder) 设置额外数据包 |
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(java.lang.String macAddress, int ftmp, int deviceType, int sportType)
开始运动参数构造函数
需要传入mac地址,是否支持FTMP,设备类型编码,设备开启运动的类型
Parameters:
Parameter Name | Parameter Description |
|---|---|
macAddress | mac地址,连接符是“:”,字母需要大写 |
ftmp | FTMP支持状态CharacteristicConstant.FtmpType |
deviceType | |
sportType |