startCallback method

Future<void> startCallback()

Starts contact and group, chatroom callback.

Call this method when you UI is ready, then will receive ChatRoomEventHandler, ChatContactEventHandler, ChatGroupEventHandler event.

Implementation

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