init static method
dynamic
init()
初始化
Implementation
static init() {
IMKitRouter.instance.registerRouter(
RouterConstants.PATH_CONVERSATION_PAGE,
(context) => ConversationPage(
config: IMKitRouter.getArgumentFormMap<ConversationUIConfig>(
context,
'config',
),
onUnreadCountChanged: IMKitRouter.getArgumentFormMap<ValueChanged<int>>(
context,
'onUnreadCountChanged',
),
),
);
IMKitRouter.instance.registerRouter(
RouterConstants.PATH_ADD_FRIEND_PAGE,
(context) => const AddFriendPage(),
);
XKitReporter().register(
moduleName: 'ConversationUIKit',
moduleVersion: '10.0.0',
);
if (IMKitClient.enableAit) {
//初始化@消息服务
AitServer.instance.initListener();
}
}