router/imkit_router_factory
library
Functions
-
clearDesktopChatNavigator()
→ void
-
清除桌面端聊天导航回调
-
goAddFriendPage<T extends Object?>(BuildContext context)
→ Future<T?>
-
-
goGlobalSearchPage<T extends Object?>(BuildContext context)
→ Future<T?>
-
-
goTeamListPage<T extends Object?>(BuildContext context, {bool? selectorModel})
→ Future<T?>
-
-
goToChatAndClearStack(BuildContext context, String teamConversationId, NIMConversationType type, {NIMMessage? message, int? anchorDate})
→ void
-
跳转到会话页面,并清空栈
-
goToChatAndKeepHome(BuildContext context, String conversationId, NIMConversationType type, {NIMMessage? message, int? anchorDate})
→ void
-
跳转到会话页面,并保持首页
-
goToChatHistoryPage<T extends Object?>(BuildContext context, String conversationId, NIMConversationType type)
→ Future<T?>
-
跳转到聊天历史记录页面
-
goToChatPage<T extends Object?>(BuildContext context, String conversationId, NIMConversationType type, {NIMMessage? message, int? anchorDate})
→ Future<T?>
-
-
goToCollectionListPage<T extends Object?>(BuildContext context)
→ Future<T?>
-
跳转到收藏消息页面
-
goToContactDetail<T extends Object?>(BuildContext context, String accId)
→ Future<T?>
-
跳转到联系人详情页面
-
goToContactSelector<T extends Object?>(BuildContext context, {int? mostCount, List<String>? filter, bool? returnContact, bool? includeAIUser, bool? includeBlackList, bool? includeSelf, bool? isDialog, String? dialogTitle, ValueChanged<List<ContactInfo>>? onSelectionChanged, bool useRootNavigator = false})
→ Future<T?>
-
-
gotoMineInfoPage<T extends Object?>(BuildContext context)
→ Future<T?>
-
跳转到个人信息页面
-
goToP2pChat<T extends Object?>(BuildContext context, String userId, {int? anchorDate, NIMMessage? message})
→ Future<T?>
-
跳转到P2P会话页面
userId 会话ID
anchorDate 锚点日期
message 锚点消息
-
goToPinPage<T extends Object?>(BuildContext context, String conversationId, NIMConversationType type, String title)
→ Future<T?>
-
跳转到Pin 消息页面
-
goToTeamChat<T extends Object?>(BuildContext context, String teamId, {NIMMessage? message, int? anchorDate})
→ Future<T?>
-
跳转到群聊页面
-
goToTeamChatHistoryPage<T extends Object?>(BuildContext context, String teamId)
→ Future<T?>
-
跳转到聊天历史记录页面
-
goToTeamDetail<T extends Object?>(BuildContext context, String teamId)
→ Future<T?>
-
跳转到群组详情页面
-
goToTeamMemberList<T extends Object?>(BuildContext context, String teamId, {bool showOwnerAndManager = true, bool isGroupTeam = false, bool isMultiSelectModel = false, bool singleSelect = false, bool showAIMember = true, bool showRole = true, int? maxSelectMemberCount, bool showRemoveButton = true})
→ Future<T?>
-
-
goToTeamSettingPage<T extends Object?>(BuildContext context, String teamId)
→ Future<T?>
-
跳转到群设置页面
-
setDesktopChatNavigator(DesktopChatNavigatorCallback callback)
→ void
-
注册桌面端聊天导航回调
-
setDesktopContactDetailBuilder(DesktopContactDetailBuilder builder)
→ void
-
注册桌面端联系人详情弹框 Builder
由 nim_contactkit_ui 在初始化时调用,传入构建 ContactKitDetailPage 的函数
-
setDesktopTeamDetailBuilder(DesktopTeamDetailBuilder builder)
→ void
-
注册桌面端群组详情弹框 Builder
由 nim_teamkit_ui 在初始化时调用,传入构建 TeamKitDetailPage 的函数
-
setDesktopUserInfoBuilder(DesktopUserInfoBuilder builder)
→ void
-
注册桌面端用户信息页面 Builder
由 im_demo 在初始化时调用,传入构建 UserInfoPage 的函数
-
showDesktopDialog<T>(BuildContext context, Widget page, {double width = 480, double height = 600})
→ Future<T?>
-
桌面/Web 端以弹框方式打开页面
在桌面端所有需要导航到新页面的场景下,使用此函数替代 Navigator.push,
以保持左右分栏布局不被破坏。
width 弹框内容区域宽度,默认 480
height 弹框内容区域高度,默认 600