命令面参考

来源:tests/helpers/manifest.ts,与运行时注册面一一对应——surface 测试保证不多不少。

plugin:event(4 条)

命令 权限归属(group) API 模块
plugin:event|listen event event
plugin:event|unlisten event event
plugin:event|emit event event
plugin:event|emit_to event event

plugin:app(13 条)

命令 权限归属(group) API 模块
plugin:app|name app app
plugin:app|version app app
plugin:app|tauri_version app app
plugin:app|get_config app app
plugin:app|identifier app app
plugin:app|show app app
plugin:app|hide app app
plugin:app|set_dock_visibility app app
plugin:app|bundle_type app app
plugin:app|supports_multiple_windows app app
plugin:app|default_window_icon app app
plugin:app|fetch_data_store_identifiers app app
plugin:app|remove_data_store app app

plugin:webview(7 条)

命令 权限归属(group) API 模块
plugin:webview|get_all_webviews webview webview-window
plugin:webview|capabilities webview webview-window
plugin:webview|create webview webview-window
plugin:webview|clear_all_browsing_data webview webview-window
plugin:webview|print webview webview-window
plugin:webview|set_background_color webview webview-window
plugin:webview|toggle_devtools webview webview-window

plugin:process(2 条)

命令 权限归属(group) API 模块
plugin:process|exit process process
plugin:process|relaunch process process

plugin:window(85 条)

命令 权限归属(group) API 模块
plugin:window|show window window
plugin:window|hide window window
plugin:window|close window window
plugin:window|prevent_close window window
plugin:window|destroy window window
plugin:window|minimize window window
plugin:window|unminimize window window
plugin:window|toggle_maximize window window
plugin:window|is_maximized window window
plugin:window|is_minimized window window
plugin:window|set_fullscreen window window
plugin:window|is_fullscreen window window
plugin:window|set_always_on_top window window
plugin:window|center window window
plugin:window|set_focus window window
plugin:window|set_visible window window
plugin:window|set_resizable window window
plugin:window|set_opacity window window
plugin:window|set_transparent window window
plugin:window|set_decorations window window
plugin:window|get_frame window window
plugin:window|get_position window window
plugin:window|inner_position window window
plugin:window|get_state window window
plugin:window|get_title window window
plugin:window|get_theme window window
plugin:window|get_scale_factor window window
plugin:window|set_ignore_cursor_events window window
plugin:window|set_cursor window window
plugin:window|set_zoom window window
plugin:window|set_shadow window window
plugin:window|set_enabled window window
plugin:window|set_position window window
plugin:window|set_bounds window window
plugin:window|set_size_constraints window window
plugin:window|set_min_size window window
plugin:window|set_max_size window window
plugin:window|set_minimizable window window
plugin:window|is_minimizable window window
plugin:window|set_maximizable window window
plugin:window|is_maximizable window window
plugin:window|set_closable window window
plugin:window|is_closable window window
plugin:window|is_decorated window window
plugin:window|is_focused window window
plugin:window|set_skip_taskbar window window
plugin:window|set_always_on_bottom window window
plugin:window|set_content_protected window window
plugin:window|request_user_attention window window
plugin:window|set_progress_bar window window
plugin:window|set_badge_count window window
plugin:window|set_badge_label window window
plugin:window|set_background_color window window
plugin:window|set_titlebar_style window window
plugin:window|maximize window window
plugin:window|unmaximize window window
plugin:window|is_enabled window window
plugin:window|inner_size window window
plugin:window|set_focusable window window
plugin:window|set_cursor_visible window window
plugin:window|cursor_position window window
plugin:window|set_cursor_position window window
plugin:window|set_theme window window
plugin:window|set_visible_on_all_workspaces window window
plugin:window|set_simple_fullscreen window window
plugin:window|get_all_windows window window
plugin:window|available_monitors window window
plugin:window|primary_monitor window window
plugin:window|current_monitor window window
plugin:window|monitor_from_point window window
plugin:window|set_traffic_light_position window window
plugin:window|start_dragging window window
plugin:window|start_resize_dragging window window
plugin:window|set_file_drop_enabled window window
plugin:window|set_cursor_grab window window
plugin:window|set_icon window window
plugin:window|set_overlay_icon window window
plugin:window|set_effects window window
plugin:window|clear_effects window window
plugin:window|set_title window window
plugin:window|set_size window window
plugin:window|activity_name window window
plugin:window|set_activity_name window window
plugin:window|scene_identifier window window
plugin:window|set_scene_identifier window window

plugin:tray(11 条)

命令 权限归属(group) API 模块
plugin:tray|create tray tray
plugin:tray|set_title tray tray
plugin:tray|set_tooltip tray tray
plugin:tray|set_icon tray tray
plugin:tray|destroy tray tray
plugin:tray|set_menu tray tray
plugin:tray|set_visible tray tray
plugin:tray|set_icon_as_template tray tray
plugin:tray|get_by_id tray tray
plugin:tray|remove_by_id tray tray
plugin:tray|set_show_menu_on_left_click tray tray

plugin:resources(1 条)

命令 权限归属(group) API 模块
plugin:resources|close resources

plugin:menu(19 条)

命令 权限归属(group) API 模块
plugin:menu|create menu menu
plugin:menu|set_as_app_menu menu menu
plugin:menu|set_item_enabled menu menu
plugin:menu|set_item_title menu menu
plugin:menu|set_item_checked menu menu
plugin:menu|set_item_accel menu menu
plugin:menu|popup menu menu
plugin:menu|add_item menu menu
plugin:menu|remove_item menu menu
plugin:menu|item_info menu menu
plugin:menu|destroy menu menu
plugin:menu|add_submenu menu menu
plugin:menu|remove_at menu menu
plugin:menu|items menu menu
plugin:menu|create_default menu menu
plugin:menu|set_as_window_menu menu menu
plugin:menu|set_as_windows_menu_for_nsapp menu menu
plugin:menu|set_as_help_menu_for_nsapp menu menu
plugin:menu|set_icon menu menu

plugin:dialog(5 条)

命令 权限归属(group) API 模块
plugin:dialog|open dialog dialog
plugin:dialog|save dialog dialog
plugin:dialog|message dialog dialog
plugin:dialog|ask dialog dialog
plugin:dialog|confirm dialog dialog

plugin:clipboard(7 条)

命令 权限归属(group) API 模块
plugin:clipboard|read_text clipboard clipboard
plugin:clipboard|write_text clipboard clipboard
plugin:clipboard|read_image clipboard clipboard
plugin:clipboard|write_image clipboard clipboard
plugin:clipboard|read_html clipboard clipboard
plugin:clipboard|write_html clipboard clipboard
plugin:clipboard|clear clipboard clipboard

plugin:notification(3 条)

命令 权限归属(group) API 模块
plugin:notification|send notification notification
plugin:notification|is_permission_granted notification notification
plugin:notification|request_permission notification notification

plugin:global-shortcut(5 条)

命令 权限归属(group) API 模块
plugin:global-shortcut|register global-shortcut global-shortcut
plugin:global-shortcut|unregister global-shortcut global-shortcut
plugin:global-shortcut|is_registered global-shortcut global-shortcut
plugin:global-shortcut|register_all global-shortcut global-shortcut
plugin:global-shortcut|unregister_all global-shortcut global-shortcut

plugin:deep-link(1 条)

命令 权限归属(group) API 模块
plugin:deep-link|get_last_url deep-link deep-link

plugin:image(5 条)

命令 权限归属(group) API 模块
plugin:image|from_bytes image image
plugin:image|from_path image image
plugin:image|rgba image image
plugin:image|size image image
plugin:image|destroy image image

plugin:fs(23 条)

命令 权限归属(group) API 模块
plugin:fs|read_text fs fs
plugin:fs|write_text fs fs
plugin:fs|read_file fs fs
plugin:fs|write_file fs fs
plugin:fs|read_dir fs fs
plugin:fs|exists fs fs
plugin:fs|remove fs fs
plugin:fs|make_dir fs fs
plugin:fs|copy fs fs
plugin:fs|rename fs fs
plugin:fs|stat fs fs
plugin:fs|watch fs fs
plugin:fs|unwatch fs fs
plugin:fs|open fs fs
plugin:fs|read fs fs
plugin:fs|seek fs fs
plugin:fs|write fs fs
plugin:fs|flush fs fs
plugin:fs|close fs fs
plugin:fs|truncate fs fs
plugin:fs|lstat fs fs
plugin:fs|read_link fs fs
plugin:fs|chmod fs fs

plugin:path(32 条)

命令 权限归属(group) API 模块
plugin:path|join path path
plugin:path|resolve path path
plugin:path|normalize path path
plugin:path|is_absolute path path
plugin:path|basename path path
plugin:path|dirname path path
plugin:path|extname path path
plugin:path|sep path path
plugin:path|home_dir path path
plugin:path|temp_dir path path
plugin:path|cwd path path
plugin:path|app_data_dir path path
plugin:path|app_config_dir path path
plugin:path|app_cache_dir path path
plugin:path|app_local_data_dir path path
plugin:path|app_log_dir path path
plugin:path|baseline_dir path path
plugin:path|data_dir path path
plugin:path|config_dir path path
plugin:path|cache_dir path path
plugin:path|font_dir path path
plugin:path|desktop_dir path path
plugin:path|document_dir path path
plugin:path|download_dir path path
plugin:path|picture_dir path path
plugin:path|audio_dir path path
plugin:path|video_dir path path
plugin:path|public_dir path path
plugin:path|template_dir path path
plugin:path|runtime_dir path path
plugin:path|executable_dir path path
plugin:path|resource_dir path path

plugin:http(1 条)

命令 权限归属(group) API 模块
plugin:http|fetch http http

plugin:os(12 条)

命令 权限归属(group) API 模块
plugin:os|info os os
plugin:os|platform os os
plugin:os|arch os os
plugin:os|hostname os os
plugin:os|version os os
plugin:os|homedir os os
plugin:os|tmpdir os os
plugin:os|sep os os
plugin:os|locale os os
plugin:os|type os os
plugin:os|family os os
plugin:os|eol os os

plugin:store(16 条)

命令 权限归属(group) API 模块
plugin:store|get store store
plugin:store|set store store
plugin:store|has store store
plugin:store|delete store store
plugin:store|clear store store
plugin:store|keys store store
plugin:store|values store store
plugin:store|entries store store
plugin:store|save_store store store
plugin:store|load store store
plugin:store|save store store
plugin:store|save_to store store
plugin:store|reset store store
plugin:store|close store store
plugin:store|set_auto_save store store
plugin:store|on_change store store

plugin:localhost(3 条)

命令 权限归属(group) API 模块
plugin:localhost|start localhost localhost
plugin:localhost|stop localhost localhost
plugin:localhost|status localhost localhost

plugin:stronghold(11 条)

命令 权限归属(group) API 模块
plugin:stronghold|load stronghold stronghold
plugin:stronghold|get stronghold stronghold
plugin:stronghold|set stronghold stronghold
plugin:stronghold|has stronghold stronghold
plugin:stronghold|remove stronghold stronghold
plugin:stronghold|keys stronghold stronghold
plugin:stronghold|clear stronghold stronghold
plugin:stronghold|save stronghold stronghold
plugin:stronghold|save_to stronghold stronghold
plugin:stronghold|close stronghold stronghold
plugin:stronghold|reload stronghold stronghold

plugin:barcode-scanner(1 条)

命令 权限归属(group) API 模块
plugin:barcode-scanner|scan barcode-scanner barcode-scanner

plugin:biometric(2 条)

命令 权限归属(group) API 模块
plugin:biometric|authenticate biometric biometric
plugin:biometric|status biometric biometric

plugin:geolocation(3 条)

命令 权限归属(group) API 模块
plugin:geolocation|get_current_position geolocation geolocation
plugin:geolocation|watch_position geolocation geolocation
plugin:geolocation|clear_watch geolocation geolocation

plugin:haptics(3 条)

命令 权限归属(group) API 模块
plugin:haptics|impact_occurred haptics haptics
plugin:haptics|notification_occurred haptics haptics
plugin:haptics|selection_changed haptics haptics

plugin:nfc(3 条)

命令 权限归属(group) API 模块
plugin:nfc|scan nfc nfc
plugin:nfc|write nfc nfc
plugin:nfc|stop nfc nfc

plugin:log(8 条)

命令 权限归属(group) API 模块
plugin:log|log log log
plugin:log|trace log log
plugin:log|debug log log
plugin:log|info log log
plugin:log|warn log log
plugin:log|error log log
plugin:log|__listener log log
plugin:log|__unlistener log log

plugin:shell(6 条)

命令 权限归属(group) API 模块
plugin:shell|execute shell shell
plugin:shell|execute_stream shell shell
plugin:shell|spawn_stream shell shell
plugin:shell|write_stdin shell shell
plugin:shell|kill shell shell
plugin:shell|open shell shell

plugin:cli(2 条)

命令 权限归属(group) API 模块
plugin:cli|get_argv cli cli
plugin:cli|get_matches cli cli

plugin:opener(3 条)

命令 权限归属(group) API 模块
plugin:opener|open_url opener opener
plugin:opener|open_path opener opener
plugin:opener|reveal_item_in_dir opener opener

plugin:sql(4 条)

命令 权限归属(group) API 模块
plugin:sql|load sql sql
plugin:sql|execute sql sql
plugin:sql|select sql sql
plugin:sql|close sql sql

plugin:autostart(3 条)

命令 权限归属(group) API 模块
plugin:autostart|is_enabled autostart autostart
plugin:autostart|enable autostart autostart
plugin:autostart|disable autostart autostart

plugin:window-state(3 条)

命令 权限归属(group) API 模块
plugin:window-state|get window-state window-state
plugin:window-state|save window-state window-state
plugin:window-state|restore window-state window-state

plugin:single-instance(1 条)

命令 权限归属(group) API 模块
plugin:single-instance|is_primary single-instance single-instance

plugin:websocket(3 条)

命令 权限归属(group) API 模块
plugin:websocket|connect websocket websocket
plugin:websocket|send websocket websocket
plugin:websocket|disconnect websocket websocket

plugin:local-ip(1 条)

命令 权限归属(group) API 模块
plugin:local-ip|get local-ip local-ip

plugin:network(3 条)

命令 权限归属(group) API 模块
plugin:network|get_local_ipv4 network network
plugin:network|get_local_ipv6 network network
plugin:network|get_public_ip network network

plugin:upload(1 条)

命令 权限归属(group) API 模块
plugin:upload|upload upload upload

plugin:persisted-scope(2 条)

命令 权限归属(group) API 模块
plugin:persisted-scope|get persisted-scope persisted-scope
plugin:persisted-scope|save persisted-scope persisted-scope

plugin:updater(6 条)

命令 权限归属(group) API 模块
plugin:updater|check updater updater
plugin:updater|verify updater updater
plugin:updater|download updater updater
plugin:updater|verify_signature updater updater
plugin:updater|install_stream updater updater
plugin:updater|install updater updater

适用版本:ztron 0.3.1