合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
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()
构造函数
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 |
public StartSportParam(java.lang.String macAddress, int deviceType, int sportType)
开始运动参数构造函数(FTMP默认支持)
需要传入mac地址,设备类型编码,设备开启运动的类型
Parameters:
Parameter Name | Parameter Description |
|---|---|
macAddress | mac地址,连接符是“:”,字母需要大写 |
deviceType | |
sportType |
public android.os.Bundle getValueHolder()
获取额外数据包
Returns:
额外数据包
public void setValueHolder(android.os.Bundle valueHolder)
设置额外数据包
Parameters:
Parameter Name | Parameter Description |
|---|---|
valueHolder | 额外数据包 |
合作咨询
我们的专家服务团队将竭诚为您提供专业的合作咨询服务
解决方案
精准高效的一站式服务支持,助力开发者商业成功