API

Permissions

Every permission identifier of the plugin, generated from permissions/.

Tauri capability permissions for this plugin, generated from permissions/default.toml and permissions/autogenerated/, which Tauri writes from the command list. Add them to a capability file, for example "permissions": ["core:default", "widgets:default"] (see Install). Each command is listed on the Tauri commands page.

Default permission set

Identifier: widgets:default

Default permissions for the widgets plugin — enables all commands.

It includes 32 permissions:

allow-set-items, allow-get-items, allow-set-register-widget, allow-reload-all-timelines, allow-reload-timelines, allow-request-widget, allow-create-widget-window, allow-close-widget-window, allow-set-widget-config, allow-set-widget-config-from-path, allow-get-widget-config, allow-widget-action, allow-poll-pending-actions, allow-report-receipt, allow-get-widget-diagnostics, allow-get-widget-trace, allow-flush-widget-trace, allow-set-widget-data, allow-set-widget-instances, allow-get-active-widgets, allow-start-activity, allow-update-activity, allow-end-activity, allow-list-activities, allow-activity-island, allow-get-activity-push-to-start-token, allow-set-widget-state, allow-get-widget-state, allow-register-activity-template, allow-get-widget-push-token, allow-can-promote-activities, allow-open-activity-promotion-settings

All permissions

IdentifierDescriptionIn default
widgets:allow-activity-islandEnables the activity_island command without any pre-configured scope.✓
widgets:deny-activity-islandDenies the activity_island command without any pre-configured scope.
widgets:allow-can-promote-activitiesEnables the can_promote_activities command without any pre-configured scope.✓
widgets:deny-can-promote-activitiesDenies the can_promote_activities command without any pre-configured scope.
widgets:allow-close-widget-windowEnables the close_widget_window command without any pre-configured scope.✓
widgets:deny-close-widget-windowDenies the close_widget_window command without any pre-configured scope.
widgets:allow-create-widget-windowEnables the create_widget_window command without any pre-configured scope.✓
widgets:deny-create-widget-windowDenies the create_widget_window command without any pre-configured scope.
widgets:allow-end-activityEnables the end_activity command without any pre-configured scope.✓
widgets:deny-end-activityDenies the end_activity command without any pre-configured scope.
widgets:allow-flush-widget-traceEnables the flush_widget_trace command without any pre-configured scope.✓
widgets:deny-flush-widget-traceDenies the flush_widget_trace command without any pre-configured scope.
widgets:allow-get-active-widgetsEnables the get_active_widgets command without any pre-configured scope.✓
widgets:deny-get-active-widgetsDenies the get_active_widgets command without any pre-configured scope.
widgets:allow-get-activity-push-to-start-tokenEnables the get_activity_push_to_start_token command without any pre-configured scope.✓
widgets:deny-get-activity-push-to-start-tokenDenies the get_activity_push_to_start_token command without any pre-configured scope.
widgets:allow-get-itemsEnables the get_items command without any pre-configured scope.✓
widgets:deny-get-itemsDenies the get_items command without any pre-configured scope.
widgets:allow-get-widget-configEnables the get_widget_config command without any pre-configured scope.✓
widgets:deny-get-widget-configDenies the get_widget_config command without any pre-configured scope.
widgets:allow-get-widget-diagnosticsEnables the get_widget_diagnostics command without any pre-configured scope.✓
widgets:deny-get-widget-diagnosticsDenies the get_widget_diagnostics command without any pre-configured scope.
widgets:allow-get-widget-push-tokenEnables the get_widget_push_token command without any pre-configured scope.✓
widgets:deny-get-widget-push-tokenDenies the get_widget_push_token command without any pre-configured scope.
widgets:allow-get-widget-stateEnables the get_widget_state command without any pre-configured scope.✓
widgets:deny-get-widget-stateDenies the get_widget_state command without any pre-configured scope.
widgets:allow-get-widget-traceEnables the get_widget_trace command without any pre-configured scope.✓
widgets:deny-get-widget-traceDenies the get_widget_trace command without any pre-configured scope.
widgets:allow-list-activitiesEnables the list_activities command without any pre-configured scope.✓
widgets:deny-list-activitiesDenies the list_activities command without any pre-configured scope.
widgets:allow-open-activity-promotion-settingsEnables the open_activity_promotion_settings command without any pre-configured scope.✓
widgets:deny-open-activity-promotion-settingsDenies the open_activity_promotion_settings command without any pre-configured scope.
widgets:allow-poll-pending-actionsEnables the poll_pending_actions command without any pre-configured scope.✓
widgets:deny-poll-pending-actionsDenies the poll_pending_actions command without any pre-configured scope.
widgets:allow-register-activity-templateEnables the register_activity_template command without any pre-configured scope.✓
widgets:deny-register-activity-templateDenies the register_activity_template command without any pre-configured scope.
widgets:allow-reload-all-timelinesEnables the reload_all_timelines command without any pre-configured scope.✓
widgets:deny-reload-all-timelinesDenies the reload_all_timelines command without any pre-configured scope.
widgets:allow-reload-timelinesEnables the reload_timelines command without any pre-configured scope.✓
widgets:deny-reload-timelinesDenies the reload_timelines command without any pre-configured scope.
widgets:allow-report-receiptEnables the report_receipt command without any pre-configured scope.✓
widgets:deny-report-receiptDenies the report_receipt command without any pre-configured scope.
widgets:allow-request-widgetEnables the request_widget command without any pre-configured scope.✓
widgets:deny-request-widgetDenies the request_widget command without any pre-configured scope.
widgets:allow-set-itemsEnables the set_items command without any pre-configured scope.✓
widgets:deny-set-itemsDenies the set_items command without any pre-configured scope.
widgets:allow-set-register-widgetEnables the set_register_widget command without any pre-configured scope.✓
widgets:deny-set-register-widgetDenies the set_register_widget command without any pre-configured scope.
widgets:allow-set-widget-configEnables the set_widget_config command without any pre-configured scope.✓
widgets:deny-set-widget-configDenies the set_widget_config command without any pre-configured scope.
widgets:allow-set-widget-config-from-pathEnables the set_widget_config_from_path command without any pre-configured scope.✓
widgets:deny-set-widget-config-from-pathDenies the set_widget_config_from_path command without any pre-configured scope.
widgets:allow-set-widget-dataEnables the set_widget_data command without any pre-configured scope.✓
widgets:deny-set-widget-dataDenies the set_widget_data command without any pre-configured scope.
widgets:allow-set-widget-instancesEnables the set_widget_instances command without any pre-configured scope.✓
widgets:deny-set-widget-instancesDenies the set_widget_instances command without any pre-configured scope.
widgets:allow-set-widget-stateEnables the set_widget_state command without any pre-configured scope.✓
widgets:deny-set-widget-stateDenies the set_widget_state command without any pre-configured scope.
widgets:allow-start-activityEnables the start_activity command without any pre-configured scope.✓
widgets:deny-start-activityDenies the start_activity command without any pre-configured scope.
widgets:allow-update-activityEnables the update_activity command without any pre-configured scope.✓
widgets:deny-update-activityDenies the update_activity command without any pre-configured scope.
widgets:allow-widget-actionEnables the widget_action command without any pre-configured scope.✓
widgets:deny-widget-actionDenies the widget_action command without any pre-configured scope.