管理中心
我的

SendCallback

public interface SendCallback

发送消息的回调接口。

穿戴设备侧发送消息到手机侧后,通过该接口进行发送结果的回调处理。

Method Summary

展开

Modifier and Type

Method and Description

default void

onSendProgress(long count) 发送消息的进度回调函数。

void

onSendResult(int errCode) 发送消息的结果回调函数。

Method Detail

onSendResult

void onSendResult(int errCode)

发送消息的结果回调函数。

Parameters:

展开

Parameter Name

Parameter Description

errCode

错误码,同HiWearErrorCode一样。

onSendProgress

default void onSendProgress(long count)

发送消息的进度回调函数。

Parameters:

展开

Parameter Name

Parameter Description

count

进度值,取值范围0~100,只在发送文件过程中体现。