register static method
({TencentCloudChatWidgetBuilder widgetBuilder})
register()
Manually declares the usage of the TencentCloudChatGroupProfile component.
During the initUIKit call, add TencentCloudChatGroupProfileManager.register in usedComponentsRegister within components
if you plan to use this component.
Implementation
static ({TencentCloudChatWidgetBuilder widgetBuilder}) register() {
TencentCloudChat.instance.dataInstance.groupProfile.groupProfileBuilder ??= TencentCloudChatGroupProfileBuilders();
TencentCloudChat.instance.dataInstance.groupProfile.groupProfileController ??=
TencentCloudChatGroupProfileController.instance;
TencentCloudChatRouter().registerRouter(
routeName: TencentCloudChatRouteNames.groupProfile,
builder: (context) => TencentCloudChatGroupProfile(
options: TencentCloudChatRouter().getArgumentFromMap<TencentCloudChatGroupProfileOptions>(context, 'options') ??
TencentCloudChatGroupProfileOptions(
groupID: "",
),
),
);
return (
widgetBuilder: ({required Map<String, dynamic> options}) => TencentCloudChatGroupProfile(
options: TencentCloudChatGroupProfileOptions(groupID: options["groupID"]),
),
);
}