Tùy chọn
Cấu hình ứng dụng. Đọc toàn bộ tùy chọn yêu cầu Chế độ nhà phát triển; đọc/ghi trong phạm vi tuân theo chính sách khóa đăng ký bên dưới.
Khóa tùy chọn đã đăng ký (63)
Quyền truy cập tuân theo chính sách của từng khóa. Đọc toàn bộ giá trị thô yêu cầu chế độ nhà phát triển.
| Khóa | Mục đích | Quyền truy cập |
|---|---|---|
| dlna | Enable the DLNA service. | Đọc/ghi cục bộ và từ xa |
| device_name | Device display name. | Đọc/ghi cục bộ và từ xa |
| feed_auto_refresh | Enable automatic feed refresh. | Đọc/ghi cục bộ và từ xa |
| feed_auto_refresh_interval | Automatic feed refresh interval in seconds. | Đọc/ghi cục bộ và từ xa |
| feed_auto_refresh_only_wifi | Restrict automatic feed refresh to Wi-Fi. | Đọc/ghi cục bộ và từ xa |
| ai_image_search_enabled | Enable semantic image search. | Đọc/ghi cục bộ và từ xa |
| ai_image_search_model | Selected image-search model. | Đọc/ghi cục bộ và từ xa |
| dlna_allowed_senders | Allowed DLNA sender identities. | Đọc/ghi cục bộ và từ xa |
| dlna_denied_senders | Denied DLNA sender identities. | Đọc/ghi cục bộ và từ xa |
| dark_theme | Theme selection: USE_DEVICE_THEME, ON or OFF. | Đọc/ghi cục bộ và từ xa |
| amoled_dark_theme | Use the AMOLED dark-theme option. | Đọc/ghi cục bộ và từ xa |
| pdf_follow_dark_theme | Apply the current dark theme to PDF viewing. | Đọc/ghi cục bộ và từ xa |
| locale | Interface language. | Đọc/ghi cục bộ và từ xa |
| show_hidden_files | Show hidden files in file browsing. | Đọc/ghi cục bộ và từ xa |
| feed_font_scale | Feed-reader font scale. | Đọc/ghi cục bộ và từ xa |
| editor_wrap_content | Wrap long editor lines. | Đọc/ghi cục bộ và từ xa |
| editor_font_size | Editor font size. | Đọc/ghi cục bộ và từ xa |
| editor_status_bar | Show the editor status bar. | Đọc/ghi cục bộ và từ xa |
| desktop_home_features | Features displayed on the desktop home page. | Đọc/ghi cục bộ và từ xa |
| desktop_rail_features | Các tính năng hiển thị trên thanh điều hướng máy tính. | Đọc/ghi cục bộ và từ xa |
| media_excluded_dirs | Directories hidden from media pages; file indexing and file search remain available. | Đọc/ghi cục bộ và từ xa |
| desktop_upload_dirs | Đường dẫn thư mục tải lên được lưu cho từng danh mục phương tiện trên máy tính. | Đọc/ghi cục bộ và từ xa |
| audio_sort_by | Audio-library sort order. | Đọc/ghi cục bộ và từ xa |
| video_sort_by | Video-library sort order. | Đọc/ghi cục bộ và từ xa |
| image_sort_by | Image-library sort order. | Đọc/ghi cục bộ và từ xa |
| doc_sort_by | Document-library sort order. | Đọc/ghi cục bộ và từ xa |
| file_sort_by | File-browser sort order. | Đọc/ghi cục bộ và từ xa |
| pkg_sort_by | Installed-package sort order. | Đọc/ghi cục bộ và từ xa |
| audio_play_mode | Audio playback repeat or shuffle mode. | Đọc/ghi cục bộ và từ xa |
| audio_playback_speed | Audio playback speed multiplier. | Đọc/ghi cục bộ và từ xa |
| pomodoro_settings | Pomodoro work, break and round configuration. | Đọc/ghi cục bộ và từ xa |
| screen_mirror_quality | Screen-mirror quality preset. | Đọc/ghi cục bộ và từ xa |
| clipboard_directions | Clipboard synchronization direction for each peer. | Chỉ đọc/ghi cục bộ |
| http_port | HTTP listener port. | Chỉ đọc/ghi cục bộ |
| https_port | HTTPS listener port. | Chỉ đọc/ghi cục bộ |
| background_service_enabled | Enable the background service. | Chỉ đọc/ghi cục bộ |
| remote_access | Enable remote access. | Chỉ đọc/ghi cục bộ |
| developer_mode | Enable developer tools and full preference or database access. | Chỉ đọc/ghi cục bộ |
| allow_any_host | Allow requests with arbitrary HTTP host names. | Chỉ đọc/ghi cục bộ |
| nearby_discoverable | Allow nearby devices to discover this device. | Chỉ đọc/ghi cục bộ |
| notification_filter | Notification synchronization filter configuration. | Chỉ đọc/ghi cục bộ |
| launcher_shortcuts | Configured launcher shortcuts. | Chỉ đọc/ghi cục bộ |
| image_grid_cells_per_row | Image-grid column count. | Chỉ đọc/ghi cục bộ |
| video_grid_cells_per_row | Video-grid column count. | Chỉ đọc/ghi cục bộ |
| https | Enable HTTPS. | Chỉ đọc/ghi cục bộ |
| web_address_bar_expanded | Expand the remote-access address bar. | Chỉ đọc/ghi cục bộ |
| password | Local password configuration. | Chỉ đọc/ghi cục bộ |
| password_type | Selected password mode. | Chỉ đọc/ghi cục bộ |
| login_require_approval | Require local approval for remote login. | Chỉ đọc/ghi cục bộ |
| api_permissions | Features authorized for remote API clients. | Chỉ đọc/ghi cục bộ |
| dev_token | Development access token configuration. | Chỉ đọc/ghi cục bộ |
| log_level | Application logging level. | Chỉ đọc/ghi cục bộ |
| auto_check_update | Automatically check for application updates. | Chỉ đọc/ghi cục bộ |
| skip_version | Application update version to skip. | Chỉ đọc/ghi cục bộ |
| mdns_hostname | mDNS hostname used for local discovery. | Cục bộ hoặc từ xa đã xác thực có HTTP_SERVER |
| recent_selected_dirs | Tối đa tám đường dẫn thư mục tuyệt đối đã xác nhận trên thiết bị này, mới nhất trước. Windows dùng /; thư mục gốc ổ đĩa là D:/, không phải D:. ["D:/Projects/Photos", "E:/Backup/Photos"] | Cục bộ hoặc từ xa đã đăng nhập và có quyền truy cập tệp |
| app_home_features | Features displayed by the native Tools page and its remote projection. | Đọc/ghi cục bộ; từ xa chỉ đọc |
| opaque_server_setup | Internal OPAQUE password-authentication server setup. | Chỉ dùng nội bộ Rust |
| opaque_password_record | Internal OPAQUE password registration record. | Chỉ dùng nội bộ Rust |
| client_id | Internal persistent device identity. | Chỉ dùng nội bộ Rust |
| adb_token | Internal authorization token for local command access. | Chỉ dùng nội bộ Rust |
| master_secret | Internal master secret. | Chỉ dùng nội bộ Rust |
| signature_key_pair | Internal device signing key pair. | Chỉ dùng nội bộ Rust |
Định nghĩa kiểu
type Subscription {
prefsChanged: Boolean!
}
type Mutation {
removePref(key: String!): Boolean!
setPref(key: String!, value: JSON!): Boolean!
}
type Query {
prefs(keys: [String!]): JSON!
}
scalar JSONThao tác
prefsChanged
Nhận tín hiệu khi tùy chọn thay đổi; tải lại các trường cấu hình bạn sử dụng.
subscription prefsChanged {
prefsChanged
}removePref
Xóa giá trị ghi đè tùy chọn có thể ghi; auto_check_update và skip_version về mặc định. Xem danh sách khóa cho phép.
mutation removePref($key: String!) {
removePref(key: $key)
}setPref
Đặt tùy chọn có thể ghi đã đăng ký, xác thực giá trị và áp dụng tác động phụ. Xem quyền trong danh sách khóa cho phép.
mutation setPref($key: String!, $value: JSON!) {
setPref(key: $key, value: $value)
}prefs
Bỏ keys hoặc truyền null để đọc mọi tùy chọn đã lưu thô, gồm khóa nội bộ; yêu cầu Chế độ nhà phát triển. Khóa có tên dùng danh sách cho phép; danh sách rỗng trả về đối tượng rỗng.
query prefs($keys: [String!]) {
prefs(keys: $keys)
}