| | |
| | | */ |
| | | public void onMessage(Context context, CustomMessage customMessage) { |
| | | |
| | | HdlLogLogic.print("极光--->自定义消息回调--->" + new Gson().toJson(customMessage), true); |
| | | HdlLogLogic.print("极光--->自定义消息回调--->" + new Gson().toJson(customMessage), false); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param registrationId 注册 id |
| | | */ |
| | | public void onRegister(Context context, String registrationId) { |
| | | HdlLogLogic.print("极光--->注册成功回调Id--->" + registrationId, true); |
| | | HdlLogLogic.print("极光--->注册成功回调Id:" + registrationId, false); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param isConnected 长连接状态 |
| | | */ |
| | | public void onConnected(Context context, boolean isConnected) { |
| | | HdlLogLogic.print("极光--->长连接状态回调--->" + isConnected, true); |
| | | HdlLogLogic.print("极光--->长连接状态回调:" + isConnected, false); |
| | | } |
| | | |
| | | /** |