public class CommandNotificationEvent
extends java.lang.Object
详见官方文档事件处理 一节
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CommandNotificationEvent.GetTargetInfoCallback |
static class |
CommandNotificationEvent.Type |
| 构造器和说明 |
|---|
CommandNotificationEvent(long senderUID,
long targetID,
CommandNotificationEvent.Type type,
java.lang.String cmd) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getMsg()
获取命令透传事件的msg
|
void |
getSenderUserInfo(GetUserInfoCallback callback)
获取命令透传事件发送方的用户信息
|
void |
getTargetInfo(CommandNotificationEvent.GetTargetInfoCallback callback)
获取命令透传事件的targetInfo.
|
CommandNotificationEvent.Type |
getType()
获取命令透传事件的target type
|
public CommandNotificationEvent(long senderUID,
long targetID,
CommandNotificationEvent.Type type,
java.lang.String cmd)
public void getSenderUserInfo(GetUserInfoCallback callback)
callback - 结果回调public void getTargetInfo(CommandNotificationEvent.GetTargetInfoCallback callback)
对于自己登陆设备间的命令透传,callback中的targetInfo返回null.
callback - 结果回调public CommandNotificationEvent.Type getType()
CommandNotificationEvent.Typepublic java.lang.String getMsg()