diff --git a/en/application-dev/reference/apis/js-apis-system-device.md b/en/application-dev/reference/apis/js-apis-system-device.md index 5ba2b2cfd48f7b4479af1e01c45fff968618bdc5..7f1d04099af72f99b3ea2ea4dac25d0263e7f2fe 100644 --- a/en/application-dev/reference/apis/js-apis-system-device.md +++ b/en/application-dev/reference/apis/js-apis-system-device.md @@ -24,7 +24,7 @@ Obtains the device information. > > Do not call **device.getInfo** before the **onShow** event of the home page. -**System capability**: SystemCapability.Startup.SystemInfo +**System capability**: SystemCapability.Startup.SystemInfo.Lite **Parameters** @@ -36,7 +36,7 @@ Obtains the device information. Defines the parameters for obtaining the device information. -**System capability**: SystemCapability.Startup.SystemInfo +**System capability**: SystemCapability.Startup.SystemInfo.Lite | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | @@ -48,7 +48,7 @@ Defines the parameters for obtaining the device information. Provides the device information. -**System capability**: SystemCapability.Startup.SystemInfo +**System capability**: SystemCapability.Startup.SystemInfo.Lite | Name| Type| Description| | -------- | -------- | -------- | diff --git a/en/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md b/en/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md index 8e0313f27220c5220f4e21d3bd33d176e06c94d3..d1116127a919655e1ee00e8bfcc4dbe770ed75eb 100644 --- a/en/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md +++ b/en/application-dev/reference/arkui-ts/ts-methods-custom-dialog-box.md @@ -117,7 +117,7 @@ struct CustomDialogUser { // Delete the dialogController instance and set it to undefined when the custom component is about to be destroyed. aboutToDisappear() { delete this.dialogController, // Delete the dialogController instance. - this.dialogController = undefined //Set dialogController to undefined. + this.dialogController = undefined // Set dialogController to undefined. } onCancel() { diff --git a/en/application-dev/reference/syscap-list.md b/en/application-dev/reference/syscap-list.md index bf294b95d9b536f5a71c41618896c26b893ab2fe..05401cbad764f67867ba93e3714e4c3b3496d107 100644 --- a/en/application-dev/reference/syscap-list.md +++ b/en/application-dev/reference/syscap-list.md @@ -1,12 +1,12 @@ # SystemCapability List -SystemCapability (SysCap) is a standalone feature in the OpenHarmony system. +SystemCapability (SysCap) is a standalone feature in the operating system. Before using an API for development, you are advised to familiarize yourself with [SysCap](syscap.md), and then consult the following tables to see whether the SysCap set required for the API is supported by the target device type. > **NOTE** -> -> The **default** device type represents an OpenHarmony device with comprehensive functions and most common capabilities. When you are not sure about the capability set of the target device, you can use the **default** type for development. +> +> The **default** device type represents an OpenHarmony device with comprehensive functions and most common capabilities. If you are not sure about the capability set of the target device, you can use the **default** type for development. ## SystemCapability.ArkUI.ArkUI.Full @@ -273,7 +273,7 @@ GNSS hardware capabilities ## SystemCapability.Location.Location.Lite -Lite device capabilities of the location service +Location service for mini-, small- and standard-system devices | Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | @@ -361,7 +361,7 @@ Power management display ## SystemCapability.PowerManager.DisplayPowerManager.Lite -Lite device capabilities of the system power management display +Power management display for mini-, small- and standard-system devices | Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | @@ -385,7 +385,7 @@ Core capabilities of the system power management service ## SystemCapability.PowerManager.PowerManager.Lite -Lite device capabilities of the system power management service +System power management service for mini-, small- and standard-system devices | Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | @@ -401,7 +401,7 @@ Core capabilities of the battery service ## SystemCapability.PowerManager.BatteryManager.Lite -Lite device capabilities of the battery service +Battery service for mini-, small- and standard-system devices | Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | @@ -527,6 +527,14 @@ Media session management capability | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | No | Yes | Yes | Yes | Yes | No | No | +## SystemCapability.Multimedia.AVSession.AVCast + +Casting capability + +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | No | Yes | Yes | No | Yes | No | No | + ## SystemCapability.Multimedia.Audio.Core Basic audio capability @@ -1103,6 +1111,14 @@ Basic file I/O interfaces | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | +## SystemCapability.FileManagement.File.FileIO.Lite + +Basic file I/O interfaces for mini-, small- and standard-system devices + +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | + ## SystemCapability.FileManagement.File.Environment Environment-related interfaces @@ -1151,6 +1167,14 @@ Sensor service subscription | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | No | Yes | Yes | No | No | No | No | +## SystemCapability.Sensors.Sensor.Lite + +Sensor service subscription for mini-, small- and standard-system devices + +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | Yes | Yes | Yes | No | No | No | No | + ## SystemCapability.Sensors.MiscDevice Miscellaneous devices- sensors @@ -1159,10 +1183,26 @@ Miscellaneous devices- sensors | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | No | Yes | Yes | No | No | No | No | +## SystemCapability.Sensors.MiscDevice.Lite + +Miscellaneous mini-, small- and standard-system devices- sensors + +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | Yes | Yes | Yes | No | No | No | No | + ## SystemCapability.Startup.SystemInfo Basic system information +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | No | Yes | Yes | Yes | Yes | Yes | Yes | + +## SystemCapability.Startup.SystemInfo.Lite + +Basic system information for mini-, small- and standard-system devices + | Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | @@ -1231,6 +1271,14 @@ Core capabilities of preferences data storage | ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | | Yes | No | Yes | Yes | Yes | Yes | No | No | +## SystemCapability.DistributedDataManager.Preferences.Core.Lite + +Core device capabilities of preferences data storage for mini-, small- and standard-system devices + +| Default | Sports Watch| Smart Watch| Tablet| Head Unit| Smart TV| Smart Vision | Router | +| ------- | ------ | ------ | ---- | ---- | ------ | ------------ | ------ | +| Yes | Yes | Yes | Yes | Yes | Yes | No | No | + ## SystemCapability.DistributedDataManager.DataShare.Core Basic capabilities of cross-process data sharing diff --git a/en/release-notes/changelogs/OpenHarmony_4.0.7.2/changelogs-arkui.md b/en/release-notes/changelogs/OpenHarmony_4.0.7.2/changelogs-arkui.md new file mode 100644 index 0000000000000000000000000000000000000000..5139e0fc65ea23869e1e03d72acb0e85defa1ad2 --- /dev/null +++ b/en/release-notes/changelogs/OpenHarmony_4.0.7.2/changelogs-arkui.md @@ -0,0 +1,60 @@ +# ArkUI Subsystem Changelog + +### Restrictions on Using Decorators + +#### 1. Restrictions on Using Component Decorators + +Component decorators @Component, @Entry, @Preview, and @CustomDialog apply only to structs, not classes. + +**Example** + +``` +@Component + // ERROR:The '@Component' decorator can only be used with 'struct'. +class Index { + build() { + } +} +``` + +**Change Impact** + +If @Component, @Entry, @Preview, or @CustomDialog is used to decorate components other than structs, a compile time error will occur. + +**Key API/Component Changes** + +N/A + +**Adaptation Guide** + +Use @Component, @Entry, @Preview, and @CustomDialog to decorate only structs. + +#### 2. Restrictions on Using Component Member Variable Decorators + +Component member variable decorators @State, @Prop, @Link, @Provide, @Consume, @ObjectLink, @StorageLink, @StorageProp, @LocalStorageLink, @LocalStorageProp, @Watch, and @BuilderParam can decorate only the member variables of structs. + +**Example** + +``` +@Component +class Index { + // ERROR: The '@State' decorator can only be used with 'struct'. + @State message: string = 'Hello world' + + build() { + + } +} +``` + +**Change Impact** + +If any of the aforementioned component member variable decorators is used to decorate a member variable of components other than structs, a compile time error will occur. + +**Key API/Component Changes** + +N/A + +**Adaptation Guide** + +Use the aforementioned component member variable decorators to decorate only the member variables of structs.