startCallback method
~english Starts contact and group, chatroom callback.
Call this method when you UI is ready, then will receive ChatRoomEventHandler, ChatContactEventHandler, ChatGroupEventHandler event. ~end
~chinese /// 开始回调通知。
当UI准备好后调用,调用之后才能收到 ChatRoomEventHandler, ChatContactEventHandler, ChatGroupEventHandler 监听。 ~end
Implementation
Future<void> startCallback() async {
Map result = await ClientChannel.invokeMethod(ChatMethodKeys.startCallback);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}