Tham chiếu API

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óaMục đíchQuyền truy cập
dlnaEnable the DLNA service. Đọc/ghi cục bộ và từ xa
device_nameDevice display name. Đọc/ghi cục bộ và từ xa
feed_auto_refreshEnable automatic feed refresh. Đọc/ghi cục bộ và từ xa
feed_auto_refresh_intervalAutomatic feed refresh interval in seconds. Đọc/ghi cục bộ và từ xa
feed_auto_refresh_only_wifiRestrict automatic feed refresh to Wi-Fi. Đọc/ghi cục bộ và từ xa
ai_image_search_enabledEnable semantic image search. Đọc/ghi cục bộ và từ xa
ai_image_search_modelSelected image-search model. Đọc/ghi cục bộ và từ xa
dlna_allowed_sendersAllowed DLNA sender identities. Đọc/ghi cục bộ và từ xa
dlna_denied_sendersDenied DLNA sender identities. Đọc/ghi cục bộ và từ xa
dark_themeTheme selection: USE_DEVICE_THEME, ON or OFF. Đọc/ghi cục bộ và từ xa
amoled_dark_themeUse the AMOLED dark-theme option. Đọc/ghi cục bộ và từ xa
pdf_follow_dark_themeApply the current dark theme to PDF viewing. Đọc/ghi cục bộ và từ xa
localeInterface language. Đọc/ghi cục bộ và từ xa
show_hidden_filesShow hidden files in file browsing. Đọc/ghi cục bộ và từ xa
feed_font_scaleFeed-reader font scale. Đọc/ghi cục bộ và từ xa
editor_wrap_contentWrap long editor lines. Đọc/ghi cục bộ và từ xa
editor_font_sizeEditor font size. Đọc/ghi cục bộ và từ xa
editor_status_barShow the editor status bar. Đọc/ghi cục bộ và từ xa
desktop_home_featuresFeatures displayed on the desktop home page. Đọc/ghi cục bộ và từ xa
desktop_rail_featuresCá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_dirsDirectories 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_byAudio-library sort order. Đọc/ghi cục bộ và từ xa
video_sort_byVideo-library sort order. Đọc/ghi cục bộ và từ xa
image_sort_byImage-library sort order. Đọc/ghi cục bộ và từ xa
doc_sort_byDocument-library sort order. Đọc/ghi cục bộ và từ xa
file_sort_byFile-browser sort order. Đọc/ghi cục bộ và từ xa
pkg_sort_byInstalled-package sort order. Đọc/ghi cục bộ và từ xa
audio_play_modeAudio playback repeat or shuffle mode. Đọc/ghi cục bộ và từ xa
audio_playback_speedAudio playback speed multiplier. Đọc/ghi cục bộ và từ xa
pomodoro_settingsPomodoro work, break and round configuration. Đọc/ghi cục bộ và từ xa
screen_mirror_qualityScreen-mirror quality preset. Đọc/ghi cục bộ và từ xa
clipboard_directionsClipboard synchronization direction for each peer. Chỉ đọc/ghi cục bộ
http_portHTTP listener port. Chỉ đọc/ghi cục bộ
https_portHTTPS listener port. Chỉ đọc/ghi cục bộ
background_service_enabledEnable the background service. Chỉ đọc/ghi cục bộ
remote_accessEnable remote access. Chỉ đọc/ghi cục bộ
developer_modeEnable developer tools and full preference or database access. Chỉ đọc/ghi cục bộ
allow_any_hostAllow requests with arbitrary HTTP host names. Chỉ đọc/ghi cục bộ
nearby_discoverableAllow nearby devices to discover this device. Chỉ đọc/ghi cục bộ
notification_filterNotification synchronization filter configuration. Chỉ đọc/ghi cục bộ
launcher_shortcutsConfigured launcher shortcuts. Chỉ đọc/ghi cục bộ
image_grid_cells_per_rowImage-grid column count. Chỉ đọc/ghi cục bộ
video_grid_cells_per_rowVideo-grid column count. Chỉ đọc/ghi cục bộ
httpsEnable HTTPS. Chỉ đọc/ghi cục bộ
web_address_bar_expandedExpand the remote-access address bar. Chỉ đọc/ghi cục bộ
passwordLocal password configuration. Chỉ đọc/ghi cục bộ
password_typeSelected password mode. Chỉ đọc/ghi cục bộ
login_require_approvalRequire local approval for remote login. Chỉ đọc/ghi cục bộ
api_permissionsFeatures authorized for remote API clients. Chỉ đọc/ghi cục bộ
dev_tokenDevelopment access token configuration. Chỉ đọc/ghi cục bộ
log_levelApplication logging level. Chỉ đọc/ghi cục bộ
auto_check_updateAutomatically check for application updates. Chỉ đọc/ghi cục bộ
skip_versionApplication update version to skip. Chỉ đọc/ghi cục bộ
mdns_hostnamemDNS hostname used for local discovery. Cục bộ hoặc từ xa đã xác thực có HTTP_SERVER
recent_selected_dirsTố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_featuresFeatures displayed by the native Tools page and its remote projection. Đọc/ghi cục bộ; từ xa chỉ đọc
opaque_server_setupInternal OPAQUE password-authentication server setup. Chỉ dùng nội bộ Rust
opaque_password_recordInternal OPAQUE password registration record. Chỉ dùng nội bộ Rust
client_idInternal persistent device identity. Chỉ dùng nội bộ Rust
adb_tokenInternal authorization token for local command access. Chỉ dùng nội bộ Rust
master_secretInternal master secret. Chỉ dùng nội bộ Rust
signature_key_pairInternal device signing key pair. Chỉ dùng nội bộ Rust

Định nghĩa kiểu

graphql
type Subscription {
  prefsChanged: Boolean!
}

type Mutation {
  removePref(key: String!): Boolean!
  setPref(key: String!, value: JSON!): Boolean!
}

type Query {
  prefs(keys: [String!]): JSON!
}

scalar JSON

Thao tác

subscription

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.

graphql
subscription prefsChanged {
  prefsChanged
}
mutation

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.

graphql
mutation removePref($key: String!) {
  removePref(key: $key)
}
mutation

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.

graphql
mutation setPref($key: String!, $value: JSON!) {
  setPref(key: $key, value: $value)
}
query

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.

graphql
query prefs($keys: [String!]) {
  prefs(keys: $keys)
}