showCommunityWidgetPreviewBox abstract method

Future<VKWebAppBoolResult> showCommunityWidgetPreviewBox({
  1. required int groupId,
  2. required String type,
  3. required String code,
})

Raising the VKWebAppShowCommunityWidgetPreviewBox event brings up the community widget preview screen. Community app widgets have a separate guide. ( https://vk.com/dev/apps_widgets )

Please note: to call in the application management https://vk.com/editapp?id={app_id} the checkbox next to "Allow installation in communities" must be set. The app must be enabled and accessible to everyone.

Platforms: iOS, Android, Web

groupId - group ID. type - Widget type. Can take values: text, list, table, tiles, compact_list, cover_list, match, matches, donation. code - Widget code. Analogue of the code parameter in the execute method. The parameters of all supported widget types are described in detail on this page. ( https://vk.com/dev/objects/appWidget )

Implementation

Future<VKWebAppBoolResult> showCommunityWidgetPreviewBox({
  required int groupId,
  required String type,
  required String code,
});