We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

StartSportParam

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 Class Summary

Expand

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

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

Field Summary

Expand

Fields inherited from interface android.os.Parcelable

CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE

Constructor Summary

Expand

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.

Method Summary

Expand

Modifier and Type

Method and Description

android.os.Bundle

getValueHolder() Obtains additional data packets.

void

setValueHolder(android.os.Bundle valueHolder) Sets additional data packets.

Expand

Methods inherited from class com.huawei.hihealth.CommonParam

getBoolean, getDouble, getInt, getString, putBoolean, putDouble, putInt, putString

Expand

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Expand

Methods inherited from interface android.os.Parcelable

describeContents, writeToParcel

Constructor Detail

StartSportParam

public StartSportParam()

Constructor.

StartSportParam

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:

Expand

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.

StartSportParam

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:

Expand

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.

Method Detail

getValueHolder

public android.os.Bundle getValueHolder()

Obtains additional data packets.

Returns:

Additional data packets.

setValueHolder

public void setValueHolder(android.os.Bundle valueHolder)

Sets additional data packets.

Parameters:

Expand

Parameter Name

Parameter Description

valueHolder

Additional data packets.

Search
Enter a keyword.