# JS API Differences This document describes the changes of APIs in OpenHarmony 3.1 Beta when compared with OpenHarmony 3.0 LTS. ## Standard System API Changes | Module| API | Change Type| Change Description | | -------- | -------- | -------- | -------- | | System Application - settings| getUri(name: string): string | Added | Added the API for obtaining the URI of a string.| | System Application - settings| getValue(dataAbilityHelper: DataAbilityHelper, name: string, defValue: string): string | Added| Added the API for obtaining the value of a string in the database.| | System Application - settings| setValue(dataAbilityHelper: DataAbilityHelper, name: string, value: string): boolean | Added| Added the API for saving a string name and its value in the database.| | Misc Services - systemTime| getCurrentTime(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of milliseconds elapsed since the Unix epoch. | | Misc Services - systemTime| getCurrentTime(): Promise\ | Added | Added the API for obtaining the number of milliseconds elapsed since the Unix epoch. | | Misc Services - systemTime| getCurrentTimeNs(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of nanoseconds elapsed since the Unix epoch. | | Misc Services - systemTime| getCurrentTimeNs(): Promise\ | Added | Added the API for obtaining the number of nanoseconds elapsed since the Unix epoch. | | Misc Services - systemTime| getRealActiveTime(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, excluding the deep sleep time.| | Misc Services - systemTime| getRealActiveTime(): Promise\ | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, excluding the deep sleep time.| | Misc Services - systemTime| getRealActiveTimeNs(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, excluding the deep sleep time.| | Misc Services - systemTime| getRealActiveTimeNs(): Promise\ | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, excluding the deep sleep time.| | Misc Services - systemTime| getRealTime(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, including the deep sleep time. | | Misc Services - systemTime| getRealTime(): Promise\ | Added | Added the API for obtaining the number of milliseconds elapsed since the system boot, including the deep sleep time. | | Misc Services - systemTime| getRealTimeNs(callback: AsyncCallback\): void | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, including the deep sleep time. | | Misc Services - systemTime| getRealTimeNs(): Promise\ | Added | Added the API for obtaining the number of nanoseconds elapsed since the system boot, including the deep sleep time. | | Misc Services - systemTime| getDate(callback: AsyncCallback\): void | Added | Added the API for obtaining the current time. | | Misc Services - systemTime| getDate(): Promise\ | Added | Added the API for obtaining the current time. | | Misc Services - systemTime| getTimeZone(callback: AsyncCallback\): void | Added | Added the API for obtaining the system time zone. | | Misc Services - systemTime| getTimeZone(): Promise\ | Added | Added the API for obtaining the system time zone. | | ArkUI Framework - Universal Events | onAreaChange| Added | Added the event indicating component area (including the size and position) changes.| | ArkUI Framework - Universal Attributes| responseRegion| Added| Added the attribute for touch hotspot settings.| | ArkUI Framework - Universal Attributes| touchable| Added| Added the attribute that specifies whether a component is touchable.| | ArkUI Framework - Universal Attributes| stateStyle| Added| Added the attribute that specifies the styles of the pressed and disabled states of a component.| | ArkUI Framework - Basic Gestures| SwipeGesture | Added| Added the SwipeGesture module.| | ArkUI Framework - Basic Components| Marquee | Added| Added the **\** component.| | ArkUI Framework - Basic Components| PluginComponent | Added| Added the **\** component.| | ArkUI Framework - Basic Components| TextArea | Added| Added the **\