目录

HiRealTimeCallback

public interface HiRealTimeCallback

运动数据自动上报回调

Since:

2021-04-13

Method Summary

Modifier and Type

Method and Description

void

onDataChanged(android.os.Bundle bundle) 实时运动数据上报

void

onResult(int errCode, java.lang.String message) 注册数据自动上报结果通知

Method Detail

[h2]onResult

void onResult(int errCode, java.lang.String message)

注册数据自动上报结果通知

Parameters:

Parameter Name

Parameter Description

errCode

控制状态返回码(注册成功、失败以及运行异常),状态码定义见HiHealthError

message

详细错误信息描述

[h2]onDataChanged

void onDataChanged(android.os.Bundle bundle)

实时运动数据上报

Parameters:

Parameter Name

Parameter Description

bundle

步数,卡路里,距离,运动数据组合体,Android的Bundle对象,