harmony(鸿蒙)JS API Changes of the Application Framework Subsystem

2022-08-09 浏览 (747)

JS API Changes of the Application Framework Subsystem

The table below lists the APIs changes of the application framework subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.settingssettingssetValueSync(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean;Added
ohos.settingssettingsgetValueSync(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string;Added
ohos.settingssettingsgetUriSync(name: string): string;Added
ohos.settingssettingscanShowFloating(callback: AsyncCallback<boolean>): void;
canShowFloating(): Promise<boolean>;
Added
ohos.settingssettingsenableAirplaneMode(enable: boolean, callback: AsyncCallback<void>): void;
enableAirplaneMode(enable: boolean): Promise<void>;
Added
ohos.settingssettingsgetValue(dataAbilityHelper: DataAbilityHelper, name: string, callback: AsyncCallback<object>): void;
getValue(dataAbilityHelper: DataAbilityHelper, name: string): Promise<object>;
Added
ohos.settingssettingsgetURI(name: string, callback: AsyncCallback<object>): void;
getURI(name: string): Promise<object>;
Added
ohos.settingswirelessconst WIFI_WATCHDOG_STATUS: stringAdded
ohos.settingswirelessconst WIFI_STATUS: stringAdded
ohos.settingswirelessconst WIFI_TO_MOBILE_DATA_AWAKE_TIMEOUT: stringAdded
ohos.settingswirelessconst WIFI_DHCP_MAX_RETRY_COUNT: stringAdded
ohos.settingswirelessconst OWNER_LOCKDOWN_WIFI_CFG: stringAdded
ohos.settingswirelessconst WIFI_RADIO: stringAdded
ohos.settingswirelessconst NFC_RADIO: stringAdded
ohos.settingswirelessconst CELL_RADIO: stringAdded
ohos.settingswirelessconst BLUETOOTH_RADIO: stringAdded
ohos.settingswirelessconst BLUETOOTH_STATUS: stringAdded
ohos.settingswirelessconst AIRPLANE_MODE_RADIOS: stringAdded
ohos.settingswirelessconst BLUETOOTH_DISCOVER_TIMEOUT: stringAdded
ohos.settingswirelessconst BLUETOOTH_DISCOVER_ABILITY_STATUS: stringAdded
ohos.settingsTTSconst ENABLED_TTS_PLUGINS: stringAdded
ohos.settingsTTSconst DEFAULT_TTS_SYNTH: stringAdded
ohos.settingsTTSconst DEFAULT_TTS_RATE: stringAdded
ohos.settingsTTSconst DEFAULT_TTS_PITCH: stringAdded
ohos.settingssoundconst HAPTIC_FEEDBACK_STATUS: stringAdded
ohos.settingssoundconst VIBRATE_STATUS: stringAdded
ohos.settingssoundconst SOUND_EFFECTS_STATUS: stringAdded
ohos.settingssoundconst DEFAULT_RINGTONE: stringAdded
ohos.settingssoundconst DEFAULT_NOTIFICATION_SOUND: stringAdded
ohos.settingssoundconst AFFECTED_MUTE_STREAMS: stringAdded
ohos.settingssoundconst AFFECTED_MODE_RINGER_STREAMS: stringAdded
ohos.settingssoundconst DTMF_TONE_WHILE_DIALING: stringAdded
ohos.settingssoundconst DTMF_TONE_TYPE_WHILE_DIALING: stringAdded
ohos.settingssoundconst DEFAULT_ALARM_ALERT: stringAdded
ohos.settingssoundconst VIBRATE_WHILE_RINGING: stringAdded
ohos.settingsphoneconst RTT_CALLING_STATUS: stringAdded
ohos.settingsnetworkconst NETWORK_PREFERENCE_USAGE: stringAdded
ohos.settingsnetworkconst HTTP_PROXY_CFG: stringAdded
ohos.settingsnetworkconst DATA_ROAMING_STATUS: stringAdded
ohos.settingsinputconst SHOW_PASSWORD_TEXT_INPUT: stringAdded
ohos.settingsinputconst AUTO_REPLACE_TEXT_INPUT: stringAdded
ohos.settingsinputconst AUTO_PUNCTUATE_TEXT_INPUT: stringAdded
ohos.settingsinputconst AUTO_CAPS_TEXT_INPUT: stringAdded
ohos.settingsinputconst SELECTOR_VISIBILITY_FOR_INPUT_METHOD: stringAdded
ohos.settingsinputconst ACTIVATED_INPUT_METHODS: stringAdded
ohos.settingsinputconst ACTIVATED_INPUT_METHOD_SUB_MODE: stringAdded
ohos.settingsinputconst DEFAULT_INPUT_METHOD: stringAdded
ohos.settingsgeneralconst TOUCH_EXPLORATION_STATUS: stringAdded
ohos.settingsgeneralconst SKIP_USE_HINTS: stringAdded
ohos.settingsgeneralconst GEOLOCATION_ORIGINS_ALLOWED: stringAdded
ohos.settingsgeneralconst ACTIVATED_ACCESSIBILITY_SERVICES: stringAdded
ohos.settingsgeneralconst ACCESSIBILITY_STATUS: stringAdded
ohos.settingsgeneralconst DEBUG_APP_PACKAGE: stringAdded
ohos.settingsgeneralconst DEBUGGER_WAITING: stringAdded
ohos.settingsgeneralconst USB_STORAGE_STATUS: stringAdded
ohos.settingsgeneralconst DEVICE_NAME: stringAdded
ohos.settingsgeneralconst DEVELOPMENT_SETTINGS_STATUS: stringAdded
ohos.settingsgeneralconst CONTACT_METADATA_SYNC_STATUS: stringAdded
ohos.settingsgeneralconst BOOT_COUNTING: stringAdded
ohos.settingsgeneralconst HDC_STATUS: stringAdded
ohos.settingsgeneralconst DEVICE_PROVISION_STATUS: stringAdded
ohos.settingsgeneralconst AIRPLANE_MODE_STATUS: stringAdded
ohos.settingsgeneralconst ACCELEROMETER_ROTATION_STATUS: stringAdded
ohos.settingsgeneralconst END_BUTTON_ACTION: stringAdded
ohos.settingsgeneralconst SETUP_WIZARD_FINISHED: stringAdded
ohos.settingsdisplayconst DISPLAY_INVERSION_STATUS: stringAdded
ohos.settingsdisplayconst WINDOW_ANIMATION_SCALE: stringAdded
ohos.settingsdisplayconst TRANSITION_ANIMATION_SCALE: stringAdded
ohos.settingsdisplayconst ANIMATOR_DURATION_SCALE: stringAdded
ohos.settingsdisplayconst DEFAULT_SCREEN_ROTATION: stringAdded
ohos.settingsdisplayconst SCREEN_OFF_TIMEOUT: stringAdded
ohos.settingsdisplayconst MANUAL_SCREEN_BRIGHTNESS_MODE: numberAdded
ohos.settingsdisplayconst AUTO_SCREEN_BRIGHTNESS_MODE: numberAdded
ohos.settingsdisplayconst AUTO_SCREEN_BRIGHTNESS: stringAdded
ohos.settingsdisplayconst SCREEN_BRIGHTNESS_STATUS: stringAdded
ohos.settingsdisplayconst FONT_SCALE: stringAdded
ohos.settingsdateconst AUTO_GAIN_TIME_ZONE: stringAdded
ohos.settingsdateconst AUTO_GAIN_TIME: stringAdded
ohos.settingsdateconst TIME_FORMAT: stringAdded
ohos.settingsdateconst DATE_FORMAT: stringAdded

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Updates (OpenHarmony 3.1 Beta -> OpenHarmony 3.1 Release)

harmony(鸿蒙)JS API Changes of the Ability Framework

harmony(鸿蒙)JS API Changes of the Accessibility Subsystem

harmony(鸿蒙)JS API Changes of the Account Subsystem

harmony(鸿蒙)JS API Changes of the ArkUI Development Framework

harmony(鸿蒙)JS API Changes of the Power Management Subsystem

harmony(鸿蒙)JS API Changes of the Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the Utils Subsystem

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/b72b0d22e7b9448585732c468a9f66a5