文档管理中心
我的

StartSportParam

java.lang.Object

|---com.huawei.hihealth.CommonParam

|---|---com.huawei.hihealth.StartSportParam

public class StartSportParam
extends CommonParam

开始运动需要透传的参数

Since:

2021-11-08

Nested Class Summary

展开

Nested classes/interfaces inherited from interface android.os.Parcelable

android.os.Parcelable.ClassLoaderCreator, android.os.Parcelable.Creator

Field Summary

展开

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

展开

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) 开始运动参数构造函数

Method Summary

展开

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

Constructor Detail

StartSportParam

public StartSportParam()

构造函数

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

设备类型编码CharacteristicConstant.DeviceType

sportType

设备开启运动的类型CharacteristicConstant.EnhanceSportType

StartSportParam

public StartSportParam(java.lang.String macAddress, int deviceType, int sportType)

开始运动参数构造函数(FTMP默认支持)

需要传入mac地址,设备类型编码,设备开启运动的类型

Parameters:

展开

Parameter Name

Parameter Description

macAddress

mac地址,连接符是“:”,字母需要大写

deviceType

设备类型编码CharacteristicConstant.DeviceType

sportType

设备开启运动的类型CharacteristicConstant.EnhanceSportType

Method Detail

getValueHolder

public android.os.Bundle getValueHolder()

获取额外数据包

Returns:

额外数据包

setValueHolder

public void setValueHolder(android.os.Bundle valueHolder)

设置额外数据包

Parameters:

展开

Parameter Name

Parameter Description

valueHolder

额外数据包