startCallback method

Future<void> startCallback()

开始回调通知。

当UI准备好后调用,调用之后才能收到 ChatRoomEventHandler, ChatContactEventHandler, ChatGroupEventHandler 监听。

Implementation

Future<void> startCallback() async {
  try {
    await platform_interface.Client.instance.callNativeMethod(ChatMethodKeys.startCallback);
  } catch (e) {
    rethrow;
  }
}