public interface SendCallback
发送消息的回调接口。
穿戴设备侧发送消息到手机侧后,通过该接口进行发送结果的回调处理。
Modifier and Type | Method and Description |
|---|---|
default void | onSendProgress(long count) 发送消息的进度回调函数。 |
void | onSendResult(int errCode) 发送消息的结果回调函数。 |
void onSendResult(int errCode)
发送消息的结果回调函数。
Parameters:
Parameter Name | Parameter Description |
|---|---|
errCode | 错误码,同HiWearErrorCode一样。 |
default void onSendProgress(long count)
发送消息的进度回调函数。
Parameters:
Parameter Name | Parameter Description |
|---|---|
count | 进度值,取值范围0~100,只在发送文件过程中体现。 |