js-apidiff-settings.md 6.6 KB
Newer Older
Z
zengyawen 已提交
1
# 应用子系统JS API变更
R
RayShih 已提交
2

Z
zengyawen 已提交
3
OpenHarmony 3.1 Release版本相较于OpenHarmony 3.0 LTS版本,应用子系统的API变更如下:
R
RayShih 已提交
4 5 6

## 接口变更

Z
zengyawen 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
|---|---|---|---|
| ohos.settings | settings | function setValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean; | 新增 |
| ohos.settings | settings | function getValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string; | 新增 |
| ohos.settings | settings | function getUriSync(name: string): string; | 新增 |
| ohos.settings | settings | function canShowFloating(callback: AsyncCallback<boolean>): void;<br>function canShowFloating(): Promise<boolean>; | 新增 |
| ohos.settings | settings | function enableAirplaneMode(enable: boolean, callback: AsyncCallback<void>): void;<br>function enableAirplaneMode(enable: boolean): Promise<void>; | 新增 |
| ohos.settings | settings | function getValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback<object>): void;<br>function getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise<object>; | 新增 |
| ohos.settings | settings | function getURI(name: string, callback: AsyncCallback<object>): void;<br>function getURI(name: string): Promise<object>; | 新增 |
| ohos.settings | wireless | const WIFI_WATCHDOG_STATUS: string | 新增 |
| ohos.settings | wireless | const WIFI_STATUS: string | 新增 |
| ohos.settings | wireless | const WIFI_TO_MOBILE_DATA_AWAKE_TIMEOUT: string | 新增 |
| ohos.settings | wireless | const WIFI_DHCP_MAX_RETRY_COUNT: string | 新增 |
| ohos.settings | wireless | const OWNER_LOCKDOWN_WIFI_CFG: string | 新增 |
| ohos.settings | wireless | const WIFI_RADIO: string | 新增 |
| ohos.settings | wireless | const NFC_RADIO: string | 新增 |
| ohos.settings | wireless | const CELL_RADIO: string | 新增 |
| ohos.settings | wireless | const BLUETOOTH_RADIO: string | 新增 |
| ohos.settings | wireless | const BLUETOOTH_STATUS: string | 新增 |
| ohos.settings | wireless | const AIRPLANE_MODE_RADIOS: string | 新增 |
| ohos.settings | wireless | const BLUETOOTH_DISCOVER_TIMEOUT: string | 新增 |
| ohos.settings | wireless | const BLUETOOTH_DISCOVER_ABILITY_STATUS: string | 新增 |
| ohos.settings | TTS | const ENABLED_TTS_PLUGINS: string | 新增 |
| ohos.settings | TTS | const DEFAULT_TTS_SYNTH: string | 新增 |
| ohos.settings | TTS | const DEFAULT_TTS_RATE: string | 新增 |
| ohos.settings | TTS | const DEFAULT_TTS_PITCH: string | 新增 |
| ohos.settings | sound | const HAPTIC_FEEDBACK_STATUS: string | 新增 |
| ohos.settings | sound | const VIBRATE_STATUS: string | 新增 |
| ohos.settings | sound | const SOUND_EFFECTS_STATUS: string | 新增 |
| ohos.settings | sound | const DEFAULT_RINGTONE: string | 新增 |
| ohos.settings | sound | const DEFAULT_NOTIFICATION_SOUND: string | 新增 |
| ohos.settings | sound | const AFFECTED_MUTE_STREAMS: string | 新增 |
| ohos.settings | sound | const AFFECTED_MODE_RINGER_STREAMS: string | 新增 |
| ohos.settings | sound | const DTMF_TONE_WHILE_DIALING: string | 新增 |
| ohos.settings | sound | const DTMF_TONE_TYPE_WHILE_DIALING: string | 新增 |
| ohos.settings | sound | const DEFAULT_ALARM_ALERT: string | 新增 |
| ohos.settings | sound | const VIBRATE_WHILE_RINGING: string | 新增 |
| ohos.settings | phone | const RTT_CALLING_STATUS: string | 新增 |
| ohos.settings | network | const NETWORK_PREFERENCE_USAGE: string | 新增 |
| ohos.settings | network | const HTTP_PROXY_CFG: string | 新增 |
| ohos.settings | network | const DATA_ROAMING_STATUS: string | 新增 |
| ohos.settings | input | const SHOW_PASSWORD_TEXT_INPUT: string | 新增 |
| ohos.settings | input | const AUTO_REPLACE_TEXT_INPUT: string | 新增 |
| ohos.settings | input | const AUTO_PUNCTUATE_TEXT_INPUT: string | 新增 |
| ohos.settings | input | const AUTO_CAPS_TEXT_INPUT: string | 新增 |
| ohos.settings | input | const SELECTOR_VISIBILITY_FOR_INPUT_METHOD: string | 新增 |
| ohos.settings | input | const ACTIVATED_INPUT_METHODS: string | 新增 |
| ohos.settings | input | const ACTIVATED_INPUT_METHOD_SUB_MODE: string | 新增 |
| ohos.settings | input | const DEFAULT_INPUT_METHOD: string | 新增 |
| ohos.settings | general | const TOUCH_EXPLORATION_STATUS: string | 新增 |
| ohos.settings | general | const SKIP_USE_HINTS: string | 新增 |
| ohos.settings | general | const GEOLOCATION_ORIGINS_ALLOWED: string | 新增 |
| ohos.settings | general | const ACTIVATED_ACCESSIBILITY_SERVICES: string | 新增 |
| ohos.settings | general | const ACCESSIBILITY_STATUS: string | 新增 |
| ohos.settings | general | const DEBUG_APP_PACKAGE: string | 新增 |
| ohos.settings | general | const DEBUGGER_WAITING: string | 新增 |
| ohos.settings | general | const USB_STORAGE_STATUS: string | 新增 |
| ohos.settings | general | const DEVICE_NAME: string | 新增 |
| ohos.settings | general | const DEVELOPMENT_SETTINGS_STATUS: string | 新增 |
| ohos.settings | general | const CONTACT_METADATA_SYNC_STATUS: string | 新增 |
| ohos.settings | general | const BOOT_COUNTING: string | 新增 |
| ohos.settings | general | const HDC_STATUS: string | 新增 |
| ohos.settings | general | const DEVICE_PROVISION_STATUS: string | 新增 |
| ohos.settings | general | const AIRPLANE_MODE_STATUS: string | 新增 |
| ohos.settings | general | const ACCELEROMETER_ROTATION_STATUS: string | 新增 |
| ohos.settings | general | const END_BUTTON_ACTION: string | 新增 |
| ohos.settings | general | const SETUP_WIZARD_FINISHED: string | 新增 |
| ohos.settings | display | const DISPLAY_INVERSION_STATUS: string | 新增 |
| ohos.settings | display | const WINDOW_ANIMATION_SCALE: string | 新增 |
| ohos.settings | display | const TRANSITION_ANIMATION_SCALE: string | 新增 |
| ohos.settings | display | const ANIMATOR_DURATION_SCALE: string | 新增 |
| ohos.settings | display | const DEFAULT_SCREEN_ROTATION: string | 新增 |
| ohos.settings | display | const SCREEN_OFF_TIMEOUT: string | 新增 |
| ohos.settings | display | const MANUAL_SCREEN_BRIGHTNESS_MODE: number | 新增 |
| ohos.settings | display | const AUTO_SCREEN_BRIGHTNESS_MODE: number | 新增 |
| ohos.settings | display | const AUTO_SCREEN_BRIGHTNESS: string | 新增 |
| ohos.settings | display | const SCREEN_BRIGHTNESS_STATUS: string | 新增 |
| ohos.settings | display | const FONT_SCALE: string | 新增 |
| ohos.settings | date | const AUTO_GAIN_TIME_ZONE: string | 新增 |
| ohos.settings | date | const AUTO_GAIN_TIME: string | 新增 |
| ohos.settings | date | const TIME_FORMAT: string | 新增 |
| ohos.settings | date | const DATE_FORMAT: string | 新增 |