From 1c2a6d76de403de617b7b67da30b93d35295acc5 Mon Sep 17 00:00:00 2001 From: RayShih Date: Fri, 21 Apr 2023 18:40:20 +0800 Subject: [PATCH] fix error links Signed-off-by: RayShih --- .../notification/progress-bar-notification.md | 2 +- .../apis/js-apis-app-ability-startOptions.md | 2 +- .../apis/js-apis-app-ability-want.md | 2 +- .../apis/js-apis-application-want.md | 8 +-- .../reference/apis/js-apis-bluetooth.md | 22 +++---- ...js-apis-bundleManager-remoteAbilityInfo.md | 2 +- .../reference/apis/js-apis-geolocation.md | 10 ++-- .../js-apis-inner-ability-abilityResult.md | 2 +- .../apis/js-apis-inner-ability-want.md | 4 +- .../notification/progress-bar-notification.md | 4 +- .../apis/js-apis-app-ability-startOptions.md | 2 +- .../apis/js-apis-app-ability-want.md | 2 +- .../apis/js-apis-application-want.md | 6 +- .../reference/apis/js-apis-bluetooth.md | 24 ++++---- ...js-apis-bundleManager-remoteAbilityInfo.md | 2 +- .../js-apis-bundleManager-shortcutInfo.md | 2 +- .../reference/apis/js-apis-geolocation.md | 10 ++-- .../js-apis-inner-ability-abilityResult.md | 2 +- .../apis/js-apis-inner-ability-want.md | 8 +-- .../reference/apis/js-apis-nfcTag.md | 2 +- zh-cn/application-dev/website-changelogs.md | 57 +++++++++++++++++++ zh-cn/release-notes/changelogs/list.txt | 43 ++++++++++++++ 22 files changed, 159 insertions(+), 59 deletions(-) create mode 100644 zh-cn/application-dev/website-changelogs.md create mode 100644 zh-cn/release-notes/changelogs/list.txt diff --git a/en/application-dev/notification/progress-bar-notification.md b/en/application-dev/notification/progress-bar-notification.md index 8090e7e835..9374bc84ea 100644 --- a/en/application-dev/notification/progress-bar-notification.md +++ b/en/application-dev/notification/progress-bar-notification.md @@ -9,7 +9,7 @@ In the [NotificationTemplate](../reference/apis/js-apis-notificationManager.md#n | Name| Description| | -------- | -------- | -| isSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void | Checks whether a specific template is supported. This API uses an asynchronous callback to return the result. For details, see [isSupportTemplate()](../reference/apis/js-apis-notificationManager.md#notificationmanagerissupporttemplate).
Only the progress-type template is supported.| +| isSupportTemplate(templateName: string, callback: AsyncCallback<boolean>): void | Checks whether a specific template is supported. This API uses an asynchronous callback to return the result. For details, see [isSupportTemplate()](../reference/apis/js-apis-inner-notification-notificationTemplate.md).
Only the progress-type template is supported.| ## How to Develop diff --git a/en/application-dev/reference/apis/js-apis-app-ability-startOptions.md b/en/application-dev/reference/apis/js-apis-app-ability-startOptions.md index d50bb380f6..9acdd105a1 100644 --- a/en/application-dev/reference/apis/js-apis-app-ability-startOptions.md +++ b/en/application-dev/reference/apis/js-apis-app-ability-startOptions.md @@ -1,6 +1,6 @@ # @ohos.app.ability.StartOptions (StartOptions) -**StartOptions** is used as an input parameter of [startAbility()](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability-1) to specify the window mode of an ability. +**StartOptions** is used as an input parameter of [startAbility()](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability1) to specify the window mode of an ability. > **NOTE** > diff --git a/en/application-dev/reference/apis/js-apis-app-ability-want.md b/en/application-dev/reference/apis/js-apis-app-ability-want.md index a052c4dbec..6d102a8484 100644 --- a/en/application-dev/reference/apis/js-apis-app-ability-want.md +++ b/en/application-dev/reference/apis/js-apis-app-ability-want.md @@ -26,7 +26,7 @@ import Want from '@ohos.app.ability.Want'; | entities | Array\ | No| Additional category information (such as browser and video player) of the ability. It is a supplement to the **action** field for implicit Want. and is used to filter ability types.| | uri | string | No| Data carried. This field is used together with **type** to specify the data type. If **uri** is specified in a Want, the Want will match the specified URI information, including **scheme**, **schemeSpecificPart**, **authority**, and **path**.| | type | string | No| MIME type, that is, the type of the file to open, for example, **'text/xml'** and **'image/*'**. For details about the MIME type definition, see https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com.| -| parameters | {[key: string]: any} | No | Want parameters in the form of custom key-value (KV) pairs. By default, the following keys are carried:
- **ohos.aafwk.callerPid**: PID of the caller.
- **ohos.aafwk.param.callerToken**: token of the caller.
- **ohos.aafwk.param.callerUid**: UID in [BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo-1), that is, the application UID in the bundle information.
- **component.startup.newRules**: whether to enable the new control rule.
- **moduleName**: module name of the caller. No matter what this field is set to, the correct module name will be sent to the peer.
- **ohos.dlp.params.sandbox**: available only for DLP files. | +| parameters | {[key: string]: any} | No | Want parameters in the form of custom key-value (KV) pairs. By default, the following keys are carried:
- **ohos.aafwk.callerPid**: PID of the caller.
- **ohos.aafwk.param.callerToken**: token of the caller.
- **ohos.aafwk.param.callerUid**: UID in [BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo1), that is, the application UID in the bundle information.
- **component.startup.newRules**: whether to enable the new control rule.
- **moduleName**: module name of the caller. No matter what this field is set to, the correct module name will be sent to the peer.
- **ohos.dlp.params.sandbox**: available only for DLP files. | | [flags](js-apis-ability-wantConstant.md#wantconstantflags) | number | No| How the **Want** object will be handled. By default, a number is passed in.
For example, **wantConstant.Flags.FLAG_ABILITY_CONTINUATION** specifies whether to start the ability in cross-device migration scenarios.| **Example** diff --git a/en/application-dev/reference/apis/js-apis-application-want.md b/en/application-dev/reference/apis/js-apis-application-want.md index 7844ed3008..6a5cbf97f2 100644 --- a/en/application-dev/reference/apis/js-apis-application-want.md +++ b/en/application-dev/reference/apis/js-apis-application-want.md @@ -23,10 +23,10 @@ import Want from '@ohos.application.Want'; | abilityName | string | No | Name of the ability. If both **bundleName** and **abilityName** are specified in a **Want** object, the **Want** object can match a specific ability. The value of **abilityName** must be unique in an application.| | uri | string | No | URI information to match. If **uri** is specified in a **Want** object, the **Want** object will match the specified URI information, including **scheme**, **schemeSpecificPart**, **authority**, and **path**.| | type | string | No | MIME type, that is, the type of the file to open, for example, **'text/xml'** and **'image/*'**. For details about the MIME type definition, see https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com. | -| flags | number | No | How the **Want** object will be handled. By default, numbers are passed in. For details, see [flags](js-apis-ability-wantConstant.md#wantConstant.Flags).| -| action | string | No | Action to take, such as viewing and sharing application details. In implicit **Want**, you can define this attribute and use it together with **uri** or **parameters** to specify the operation to be performed on the data. For details, see [action](js-apis-app-ability-wantConstant.md#wantConstant.Action). For details about the definition and matching rules of implicit Want, see [Matching Rules of Explicit Want and Implicit Want](application-models/explicit-implicit-want-mappings.md). | -| parameters | {[key: string]: any} | No | Want parameters in the form of custom key-value (KV) pairs. By default, the following keys are carried:
- **ohos.aafwk.callerPid**: PID of the caller.
- **ohos.aafwk.param.callerToken**: token of the caller.
- **ohos.aafwk.param.callerUid**: UID in [bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1), that is, the application UID in the bundle information.
- **component.startup.newRules**: whether to enable the new control rule.
- **moduleName**: module name of the caller. No matter what this field is set to, the correct module name will be sent to the peer.
- **ohos.dlp.params.sandbox**: available only for DLP files. | -| entities | Array\ | No | Additional category information (such as browser and video player) of the ability. It is a supplement to the **action** field for implicit Want. and is used to filter ability types. For details, see [entity](js-apis-app-ability-wantConstant.md#wantConstant.Entity). | +| flags | number | No | How the **Want** object will be handled. By default, numbers are passed in. For details, see [flags](js-apis-ability-wantConstant.md#wantconstantflags).| +| action | string | No | Action to take, such as viewing and sharing application details. In implicit **Want**, you can define this attribute and use it together with **uri** or **parameters** to specify the operation to be performed on the data. For details, see [action](js-apis-ability-wantConstant.md#wantconstantaction). For details about the definition and matching rules of implicit Want, see [Matching Rules of Explicit Want and Implicit Want](application-models/explicit-implicit-want-mappings.md). | +| parameters | {[key: string]: any} | No | Want parameters in the form of custom key-value (KV) pairs. By default, the following keys are carried:
- **ohos.aafwk.callerPid**: PID of the caller.
- **ohos.aafwk.param.callerToken**: token of the caller.
- **ohos.aafwk.param.callerUid**: UID in [bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo1), that is, the application UID in the bundle information.
- **component.startup.newRules**: whether to enable the new control rule.
- **moduleName**: module name of the caller. No matter what this field is set to, the correct module name will be sent to the peer.
- **ohos.dlp.params.sandbox**: available only for DLP files. | +| entities | Array\ | No | Additional category information (such as browser and video player) of the ability. It is a supplement to the **action** field for implicit Want. and is used to filter ability types. For details, see [entity](js-apis-app-ability-wantConstant.md#wantconstantentity). | **Example** diff --git a/en/application-dev/reference/apis/js-apis-bluetooth.md b/en/application-dev/reference/apis/js-apis-bluetooth.md index f22961f168..b6457fffee 100644 --- a/en/application-dev/reference/apis/js-apis-bluetooth.md +++ b/en/application-dev/reference/apis/js-apis-bluetooth.md @@ -1608,7 +1608,7 @@ connect(device: string): boolean Sets up a Hands-free Profile (HFP) connection of a device. > **NOTE**
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.connect](js-apis-bluetoothManager.md#connect-1). +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.connect](js-apis-bluetoothManager.md#connect1). **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH @@ -1642,7 +1642,7 @@ disconnect(device: string): boolean Disconnects the HFP connection of a device. > **NOTE**
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.disconnect](js-apis-bluetoothManager.md#disconnect-1). +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.disconnect](js-apis-bluetoothManager.md#disconnect1). **Required permissions**: ohos.permission.DISCOVER_BLUETOOTH @@ -1676,7 +1676,7 @@ on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#Stat Subscribes to the HFP connection state change events. > **NOTE**
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange-1). +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange1). **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -1710,7 +1710,7 @@ off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#St Unsubscribes from the HFP connection state change events. > **NOTE**
-> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange-1). +> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [bluetoothManager.HandsFreeAudioGatewayProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange1). **System capability**: SystemCapability.Communication.Bluetooth.Core @@ -2498,7 +2498,7 @@ disconnect(): boolean Disconnects from the remote BLE device. > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.disconnect](js-apis-bluetoothManager.md#disconnect-4). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.disconnect](js-apis-bluetoothManager.md#disconnect4). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -2525,7 +2525,7 @@ close(): boolean Closes this GATT client to unregister it from the protocol stack. After this method is called, this [GattClientDevice](#gattclientdevice) instance cannot be used. > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.close](js-apis-bluetoothManager.md#close-1). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.close](js-apis-bluetoothManager.md#close1). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -2599,7 +2599,7 @@ getServices(): Promise<Array<GattService>> Obtains all services of the remote BLE device. This API uses a promise to return the result. > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices-1). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices1). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -2687,7 +2687,7 @@ readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharac Reads the characteristic value of the specific service of the remote BLE device. This API uses a promise to return the result. > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue-1). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue1). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -2783,7 +2783,7 @@ readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor> Reads the descriptor contained in the specific characteristic of the remote BLE device. This API uses a promise to return the result. > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue-1). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue1). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -3170,7 +3170,7 @@ getDeviceName(): Promise<string> Obtains the name of the remote BLE device. This API uses a promise to return the result. > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename-1). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename1). **Required permissions**: ohos.permission.USE_BLUETOOTH @@ -3237,7 +3237,7 @@ getRssiValue(): Promise<number> Obtains the RSSI of the remote BLE device. This API uses a promise to return the result. It can be used only after a connection is set up by calling [connect](#connect). > **NOTE**
-> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue-1). +> This API is supported since API version 7 and deprecated since API version 9. You are advised to use [bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue1). **Required permissions**: ohos.permission.USE_BLUETOOTH diff --git a/en/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md b/en/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md index 0281e4fc77..05602e10a3 100644 --- a/en/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md +++ b/en/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md @@ -1,6 +1,6 @@ # RemoteAbilityInfo -The **RemoteAbilityInfo** module provides information about a remote ability, which can be obtained through [distributedBundle.getRemoteAbilityInfo](js-apis-distributedBundle.md). +The **RemoteAbilityInfo** module provides information about a remote ability, which can be obtained through [distributedBundle.getRemoteAbilityInfo](js-apis-distributedBundleManager.md#distributedBundlegetremoteabilityinfo). > **NOTE** > diff --git a/en/application-dev/reference/apis/js-apis-geolocation.md b/en/application-dev/reference/apis/js-apis-geolocation.md index de7d46dc6b..2f8cbd6687 100644 --- a/en/application-dev/reference/apis/js-apis-geolocation.md +++ b/en/application-dev/reference/apis/js-apis-geolocation.md @@ -555,7 +555,7 @@ getCurrentLocation(request?: CurrentLocationRequest): Promise<Location> Obtains the current location. This API uses a promise to return the result. > **NOTE**
-> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation-2). +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation2). **Required permissions**: ohos.permission.LOCATION @@ -882,7 +882,7 @@ getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise<Array<Ge Converts coordinates into geographic descriptions through reverse geocoding. This API uses a promise to return the result. > **NOTE**
-> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocation](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocation-1). +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocation](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocation1). **Required permissions**: ohos.permission.LOCATION @@ -954,7 +954,7 @@ getAddressesFromLocationName(request: GeoCodeRequest): Promise<Array<GeoAd Converts geographic descriptions into coordinates through geocoding. This API uses a promise to return the result. > **NOTE**
-> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocationName](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocationname-1). +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getAddressesFromLocationName](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocationname1). **Required permissions**: ohos.permission.LOCATION @@ -1026,7 +1026,7 @@ Obtains the number of cached GNSS locations. > **NOTE**
> This API is supported since API version 8. -> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCachedGnssLocationsSize](js-apis-geoLocationManager.md#geolocationmanagergetcachedgnsslocationssize-1). +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.getCachedGnssLocationsSize](js-apis-geoLocationManager.md#geolocationmanagergetcachedgnsslocationssize1). **Required permissions**: ohos.permission.LOCATION @@ -1091,7 +1091,7 @@ Obtains all cached GNSS locations and clears the GNSS cache queue. > **NOTE**
> This API is supported since API version 8. -> This API is deprecated since API version 9. You are advised to use [geoLocationManager.flushCachedGnssLocations](js-apis-geoLocationManager.md#geolocationmanagerflushcachedgnsslocations-1). +> This API is deprecated since API version 9. You are advised to use [geoLocationManager.flushCachedGnssLocations](js-apis-geoLocationManager.md#geolocationmanagerflushcachedgnsslocations1). **Required permissions**: ohos.permission.LOCATION diff --git a/en/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md b/en/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md index 54c8f0400b..13573de144 100644 --- a/en/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md +++ b/en/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md @@ -1,6 +1,6 @@ # AbilityResult -The **AbilityResult** module defines the result code and data returned when an ability is terminated after being started. You can use [startAbilityForResult](js-apis-ability-context.md#abilitycontextstartabilityforresult) to obtain the **AbilityResult** object returned after the started ability is terminated. The startedability returns the **AbilityResult** object by calling [terminateSelfWithResult](js-apis-ability-context.md#abilitycontextterminateselfwithresult). +The **AbilityResult** module defines the result code and data returned when an ability is terminated after being started. You can use [startAbilityForResult](js-apis-ability-featureAbility.md#featureabilitystartabilityforresult7) to obtain the **AbilityResult** object returned after the started ability is terminated. The startedability returns the **AbilityResult** object by calling [terminateSelfWithResult](js-apis-ability-featureAbility.md#featureabilityterminateselfwithresult7). > **NOTE** > diff --git a/en/application-dev/reference/apis/js-apis-inner-ability-want.md b/en/application-dev/reference/apis/js-apis-inner-ability-want.md index 33de553183..366942408c 100644 --- a/en/application-dev/reference/apis/js-apis-inner-ability-want.md +++ b/en/application-dev/reference/apis/js-apis-inner-ability-want.md @@ -16,8 +16,8 @@ Want is a carrier for information transfer between objects (application componen | uri | string | No | URI. If **uri** is specified in a **Want** object, the **Want** object will match the specified URI information, including **scheme**, **schemeSpecificPart**, **authority**, and **path**.| | type | string | No | MIME type, that is, the type of the file to open, for example, **'text/xml'** and **'image/*'**. For details about the MIME type definition, see https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com. | | flags | number | No | How the **Want** object will be handled. By default, numbers are passed in. For details, see [flags](js-apis-ability-wantConstant.md#wantconstantflags). | -| action | string | No | Action to take, such as viewing and sharing application details. In implicit Want, you can define this field and use it together with **uri** or **parameters** to specify the operation to be performed on the data. For details, see [action](js-apis-app-ability-wantConstant.md#wantconstantaction). For details about the definition and matching rules of implicit Want, see [Matching Rules of Explicit Want and Implicit Want](application-models/explicit-implicit-want-mappings.md). | -| parameters | {[key: string]: Object} | No | Want parameters in the form of custom key-value (KV) pairs. By default, the following keys are carried:
- **ohos.aafwk.callerPid**: PID of the caller.
**ohos.aafwk.param.callerToken**: token of the caller.
- **ohos.aafwk.param.callerUid**: UID in [bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1), that is, the application UID in the bundle information.
- **component.startup.newRules**: whether to enable the new control rule.
- **moduleName**: module name of the caller. No matter what this field is set to, the correct module name will be sent to the peer.
- **ohos.dlp.params.sandbox**: available only for DLP files. | +| action | string | No | Action to take, such as viewing and sharing application details. In implicit Want, you can define this field and use it together with **uri** or **parameters** to specify the operation to be performed on the data. For details, see [action](js-apis-app-ability-wantConstant.md#wantconstantaction). For details about the definition and matching rules of implicit Want, see [Matching Rules of Explicit Want and Implicit Want](../../application-models/explicit-implicit-want-mappings.md). | +| parameters | {[key: string]: Object} | No | Want parameters in the form of custom key-value (KV) pairs. By default, the following keys are carried:
- **ohos.aafwk.callerPid**: PID of the caller.
**ohos.aafwk.param.callerToken**: token of the caller.
- **ohos.aafwk.param.callerUid**: UID in [bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo1), that is, the application UID in the bundle information.
- **component.startup.newRules**: whether to enable the new control rule.
- **moduleName**: module name of the caller. No matter what this field is set to, the correct module name will be sent to the peer.
- **ohos.dlp.params.sandbox**: available only for DLP files. | | entities | Array\ | No | Additional category information (such as browser and video player) of the target ability. It is a supplement to **action** in implicit Want and is used to filter ability types. For details, see [entity](js-apis-app-ability-wantConstant.md#wantconstantentity). | | moduleName9+ | string | No | Module to which the ability belongs.| diff --git a/zh-cn/application-dev/notification/progress-bar-notification.md b/zh-cn/application-dev/notification/progress-bar-notification.md index f8ea20e121..9474d8925d 100644 --- a/zh-cn/application-dev/notification/progress-bar-notification.md +++ b/zh-cn/application-dev/notification/progress-bar-notification.md @@ -3,14 +3,14 @@ 进度条通知也是常见的通知类型,主要应用于文件下载、事务处理进度显示。OpenHarmony提供了进度条模板,发布通知应用设置好进度条模板的属性值,如模板名、模板数据,通过通知子系统发送到通知栏显示。 -目前系统模板仅支持进度条模板,通知模板[NotificationTemplate](../reference/apis/js-apis-notificationManager.md#notificationtemplate)中的data参数为用户自定义数据,用于显示与模块相关的数据,效果示意如下图所示。 +目前系统模板仅支持进度条模板,通知模板[NotificationTemplate](../reference/apis/js-apis-notificationTemplate.md)中的data参数为用户自定义数据,用于显示与模块相关的数据,效果示意如下图所示。 ![zh-cn_image_0000001416903138](figures/zh-cn_image_0000001416903138.png) ## 接口说明 -[isSupportTemplate()](../reference/apis/js-apis-notificationManager.md#notificationmanagerissupporttemplate)是查询模板是否支持接口,目前仅支持进度条模板。 +[isSupportTemplate()](../reference/apis/js-apis-inner-notification-notificationTemplate.md)是查询模板是否支持接口,目前仅支持进度条模板。 | **接口名** | **描述** | | -------- | -------- | diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md index b761614625..a96ed3523c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-startOptions.md @@ -1,6 +1,6 @@ # @ohos.app.ability.StartOptions (StartOptions) -StartOptions可以作为[startAbility()](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability-1)的入参,用于指定目标Ability的窗口模式。 +StartOptions可以作为[startAbility()](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartability1)的入参,用于指定目标Ability的窗口模式。 > **说明:** > diff --git a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md index ba737871aa..3ed5d5ebce 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-app-ability-want.md @@ -26,7 +26,7 @@ import Want from '@ohos.app.ability.Want'; | entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器)。在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。 | | uri | string | 否 | 表示携带的数据,一般配合type使用,指明待处理的数据类型。如果在Want中指定了uri,则Want将匹配指定的Uri信息,包括`scheme`、`schemeSpecificPart`、`authority`和`path`信息。 | | type | string | 否 | 表示MIME type类型描述,打开文件的类型,主要用于文管打开文件。比如:'text/xml' 、 'image/*'等,MIME定义请参见https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | -| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
- ohos.aafwk.callerPid:表示拉起方的pid。
- ohos.aafwk.param.callerBundleName:表示拉起方的Bundle Name。
- ohos.aafwk.param.callerToken:表示拉起方的token。
- ohos.aafwk.param.callerUid:表示[BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | +| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
- ohos.aafwk.callerPid:表示拉起方的pid。
- ohos.aafwk.param.callerBundleName:表示拉起方的Bundle Name。
- ohos.aafwk.param.callerToken:表示拉起方的token。
- ohos.aafwk.param.callerUid:表示[BundleInfo](js-apis-bundleManager-bundleInfo.md#bundleinfo1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | [flags](js-apis-ability-wantConstant.md#wantconstantflags) | number | 否 | 表示处理Want的方式。默认传数字。
例如通过wantConstant.Flags.FLAG_ABILITY_CONTINUATION表示是否以设备间迁移方式启动Ability。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-application-want.md b/zh-cn/application-dev/reference/apis/js-apis-application-want.md index f028724c67..c5048ff11e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-application-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-application-want.md @@ -23,9 +23,9 @@ import Want from '@ohos.application.Want'; | abilityName | string | 否 | 表示待启动的Ability名称。如果在Want中该字段同时指定了BundleName和AbilityName,则Want可以直接匹配到指定的Ability。AbilityName需要在一个应用的范围内保证唯一。 | | uri | string | 否 | 表示Uri描述。如果在Want中指定了Uri,则Want将匹配指定的Uri信息,包括scheme, schemeSpecificPart, authority和path信息。 | | type | string | 否 | 表示MIME type类型描述,打开文件的类型,主要用于文管打开文件。比如:'text/xml' 、 'image/*'等,MIME定义参考:https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | -| flags | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-ability-wantConstant.md#wantConstant.Flags)。 | -| action | string | 否 | 表示要执行的通用操作(如:查看、分享、应用详情)。在隐式Want中,您可以定义该字段,配合uri或parameters来表示对数据要执行的操作。具体参考:[action说明](js-apis-app-ability-wantConstant.md#wantConstant.Action)。隐式Want定义及匹配规则参考:[显式Want与隐式Want匹配规则](application-models/explicit-implicit-want-mappings.md)。 | -| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | +| flags | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-ability-wantConstant.md#wantconstantflags)。 | +| action | string | 否 | 表示要执行的通用操作(如:查看、分享、应用详情)。在隐式Want中,您可以定义该字段,配合uri或parameters来表示对数据要执行的操作。具体参考:[action说明](js-apis-app-ability-wantConstant.md#wantConstant.Action)。隐式Want定义及匹配规则参考:[显式Want与隐式Want匹配规则](../../application-models/explicit-implicit-want-mappings.md)。 | +| parameters | {[key: string]: any} | 否 | 表示WantParams描述,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | | entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器)。在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。具体参考:[entity说明](js-apis-app-ability-wantConstant.md#wantConstant.Entity)。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md b/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md index 636487cc3d..e0de99be03 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bluetooth.md @@ -1607,7 +1607,7 @@ connect(device: string): boolean 连接设备的HFP服务。 > **说明:**
-> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.connect](js-apis-bluetoothManager.md#connect-1)替代。 +> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.connect](js-apis-bluetoothManager.md#connect1)替代。 **需要权限**:ohos.permission.DISCOVER_BLUETOOTH @@ -1641,7 +1641,7 @@ disconnect(device: string): boolean 断开连接设备的HFP服务。 > **说明:**
-> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.disconnect](js-apis-bluetoothManager.md#disconnect-1)替代。 +> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.disconnect](js-apis-bluetoothManager.md#disconnect1)替代。 **需要权限**:ohos.permission.DISCOVER_BLUETOOTH @@ -1675,7 +1675,7 @@ on(type: "connectionStateChange", callback: Callback<[StateChangeParam](#Stat 订阅HFP连接状态变化事件。 > **说明:**
-> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange-1)替代。 +> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.on('connectionStateChange')](js-apis-bluetoothManager.md#onconnectionstatechange1)替代。 **系统能力**:SystemCapability.Communication.Bluetooth.Core。 @@ -1709,7 +1709,7 @@ off(type: "connectionStateChange", callback?: Callback<[StateChangeParam](#St 取消订阅HFP连接状态变化事件。 > **说明:**
-> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange-1)替代。 +> 从API version 8开始支持,从API version 9开始废弃。建议使用[bluetoothManager.HandsFreeAudioGatewayProfile.off('connectionStateChange')](js-apis-bluetoothManager.md#offconnectionstatechange1)替代。 **系统能力**:SystemCapability.Communication.Bluetooth.Core。 @@ -2470,7 +2470,7 @@ connect(): boolean client端发起连接远端蓝牙低功耗设备。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.connect](js-apis-bluetoothManager.md#connect-3)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.connect](js-apis-bluetoothManager.md#connect3)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -2497,7 +2497,7 @@ disconnect(): boolean client端断开与远端蓝牙低功耗设备的连接。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.disconnect](js-apis-bluetoothManager.md#disconnect-4)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.disconnect](js-apis-bluetoothManager.md#disconnect4)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -2524,7 +2524,7 @@ close(): boolean 关闭客户端功能,注销client在协议栈的注册,调用该接口后[GattClientDevice](#gattclientdevice)实例将不能再使用。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.close](js-apis-bluetoothManager.md#close-1)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.close](js-apis-bluetoothManager.md#close1)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -2598,7 +2598,7 @@ getServices(): Promise<Array<GattService>> client端获取蓝牙低功耗设备的所有服务,即服务发现。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices-1)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.getServices](js-apis-bluetoothManager.md#getservices1)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -2686,7 +2686,7 @@ readCharacteristicValue(characteristic: BLECharacteristic): Promise<BLECharac client端读取蓝牙低功耗设备特定服务的特征值。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue-1)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.readCharacteristicValue](js-apis-bluetoothManager.md#readcharacteristicvalue1)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -2782,7 +2782,7 @@ readDescriptorValue(descriptor: BLEDescriptor): Promise<BLEDescriptor> client端读取蓝牙低功耗设备特定的特征包含的描述符。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue-1)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.readDescriptorValue](js-apis-bluetoothManager.md#readdescriptorvalue1)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -3169,7 +3169,7 @@ getDeviceName(): Promise<string> client获取远端蓝牙低功耗设备名。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename-1)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.getDeviceName](js-apis-bluetoothManager.md#getdevicename1)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH @@ -3236,7 +3236,7 @@ getRssiValue(): Promise<number> client获取远端蓝牙低功耗设备的信号强度 (Received Signal Strength Indication, RSSI),调用[connect](#connect)接口连接成功后才能使用。 > **说明:**
-> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue-1)替代。 +> 从API version 7开始支持,从API version 9开始废弃。建议使用[bluetoothManager.GattClientDevice.getRssiValue](js-apis-bluetoothManager.md#getrssivalue1)替代。 **需要权限**:ohos.permission.USE_BLUETOOTH diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md index 8cb105a93a..95d925883e 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-remoteAbilityInfo.md @@ -3,7 +3,7 @@ > **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 -包含远程的ability信息,通过接口[distributedBundle.getRemoteAbilityInfo](js-apis-distributedBundle.md)获取。 +包含远程的ability信息,通过接口[distributedBundle.getRemoteAbilityInfo](js-apis-distributedBundleManager.md#distributedbundlegetremoteabilityinfo)获取。 ## RemoteAbilityInfo diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md index 67b3a567cd..2991bf1bf6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager-shortcutInfo.md @@ -5,7 +5,7 @@ > **说明:** > 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > -> FA模型配置在[config.json文件中进行配置](../../quick-start/module-structure.md#%E8%A1%A817-shortcuts%E5%AF%B9%E8%B1%A1%E7%9A%84%E5%86%85%E9%83%A8%E7%BB%93%E6%9E%84%E8%AF%B4%E6%98%8E),Stage模型配置参考[shortcuts对象内部结构](../../quick-start/module-configuration-file.md#shortcuts标签)。 +> FA模型配置在[config.json文件中进行配置](../../quick-start/module-structure.md),Stage模型配置参考[shortcuts对象内部结构](../../quick-start/module-configuration-file.md#shortcuts标签)。 ## ShortcutWant diff --git a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md index 1e7eccc4c1..db68207fce 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-geolocation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-geolocation.md @@ -555,7 +555,7 @@ getCurrentLocation(request?: CurrentLocationRequest): Promise<Location> 获取当前位置,使用Promise方式异步返回结果。 > **说明:**
-> 从API version 9开始废弃,建议使用[geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation-2)替代。 +> 从API version 9开始废弃,建议使用[geoLocationManager.getCurrentLocation](js-apis-geoLocationManager.md#geolocationmanagergetcurrentlocation2)替代。 **需要权限**:ohos.permission.LOCATION @@ -882,7 +882,7 @@ getAddressesFromLocation(request: ReverseGeoCodeRequest): Promise<Array<Ge 调用逆地理编码服务,将坐标转换为地理描述,使用Promise方式异步返回结果。 > **说明:**
-> 从API version 9开始废弃,建议使用[geoLocationManager.getAddressesFromLocation](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocation-1)替代。 +> 从API version 9开始废弃,建议使用[geoLocationManager.getAddressesFromLocation](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocation1)替代。 **需要权限**:ohos.permission.LOCATION @@ -954,7 +954,7 @@ getAddressesFromLocationName(request: GeoCodeRequest): Promise<Array<GeoAd 调用地理编码服务,将地理描述转换为具体坐标,使用Promise方式异步返回结果。 > **说明:**
-> 从API version 9开始废弃,建议使用[geoLocationManager.getAddressesFromLocationName](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocationname-1)替代。 +> 从API version 9开始废弃,建议使用[geoLocationManager.getAddressesFromLocationName](js-apis-geoLocationManager.md#geolocationmanagergetaddressesfromlocationname1)替代。 **需要权限**:ohos.permission.LOCATION @@ -1026,7 +1026,7 @@ getCachedGnssLocationsSize(): Promise<number>; > **说明:**
> 从API version 8开始支持。 -> 从API version 9开始废弃,建议使用[geoLocationManager.getCachedGnssLocationsSize](js-apis-geoLocationManager.md#geolocationmanagergetcachedgnsslocationssize-1)替代。 +> 从API version 9开始废弃,建议使用[geoLocationManager.getCachedGnssLocationsSize](js-apis-geoLocationManager.md#geolocationmanagergetcachedgnsslocationssize1)替代。 **需要权限**:ohos.permission.LOCATION @@ -1091,7 +1091,7 @@ flushCachedGnssLocations(): Promise<boolean>; > **说明:**
> 从API version 8开始支持。 -> 从API version 9开始废弃,建议使用[geoLocationManager.flushCachedGnssLocations](js-apis-geoLocationManager.md#geolocationmanagerflushcachedgnsslocations-1)替代。 +> 从API version 9开始废弃,建议使用[geoLocationManager.flushCachedGnssLocations](js-apis-geoLocationManager.md#geolocationmanagerflushcachedgnsslocations1)替代。 **需要权限**:ohos.permission.LOCATION diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md index 1affde1517..9db916a456 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-abilityResult.md @@ -1,6 +1,6 @@ # AbilityResult -定义Ability被拉起并退出后返回的结果码和数据,可以通过[startAbilityForResult](js-apis-ability-context.md#abilitycontextstartabilityforresult)获取被拉起Ability退出后返回的AbilityResult对象,被startAbilityForResult拉起的Ability对象可以通过[terminateSelfWithResult](js-apis-ability-context.md#abilitycontextterminateselfwithresult)返回AbilityResult对象。 +定义Ability被拉起并退出后返回的结果码和数据,可以通过[startAbilityForResult](js-apis-ability-featureAbility.md#featureabilitystartabilityforresult7)获取被拉起Ability退出后返回的AbilityResult对象,被startAbilityForResult拉起的Ability对象可以通过[terminateSelfWithResult](js-apis-ability-featureAbility.md#featureabilityterminateselfwithresult7)返回AbilityResult对象。 > **说明:** > diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md index 195a244212..d89ffb47d8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-ability-want.md @@ -15,10 +15,10 @@ Want是对象间信息传递的载体, 可以用于应用组件间的信息传 | abilityName | string | 否 | 表示待启动的Ability名称。如果在Want中该字段同时指定了BundleName和AbilityName,则Want可以直接匹配到指定的Ability。AbilityName需要在一个应用的范围内保证唯一。 | | uri | string | 否 | 表示Uri。如果在Want中指定了Uri,则Want将匹配指定的Uri信息,包括scheme, schemeSpecificPart, authority和path信息。 | | type | string | 否 | 表示MIME type类型,打开文件的类型,主要用于文管打开文件。比如:'text/xml' 、 'image/*'等,MIME定义参考:https://www.iana.org/assignments/media-types/media-types.xhtml?utm_source=ld246.com。 | -| flags | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-ability-wantConstant.md#wantConstant.Flags)。 | -| action | string | 否 | 表示要执行的通用操作(如:查看、分享、应用详情)。在隐式Want中,您可以定义该字段,配合uri或parameters来表示对数据要执行的操作。具体参考:[action说明](js-apis-app-ability-wantConstant.md#wantConstant.Action)。隐式Want定义及匹配规则参考:[显式Want与隐式Want匹配规则](application-models/explicit-implicit-want-mappings.md)。 | -| parameters | {[key: string]: Object} | 否 | 表示WantParams,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo-1)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | -| entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器),在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。具体参考:[entity说明](js-apis-app-ability-wantConstant.md#wantConstant.Entity)。 | +| flags | number | 否 | 表示处理Want的方式。默认传数字,具体参考:[flags说明](js-apis-ability-wantConstant.md#wantconstantflags)。 | +| action | string | 否 | 表示要执行的通用操作(如:查看、分享、应用详情)。在隐式Want中,您可以定义该字段,配合uri或parameters来表示对数据要执行的操作。具体参考:[action说明](js-apis-ability-wantConstant.md#wantconstantaction)。隐式Want定义及匹配规则参考:[显式Want与隐式Want匹配规则](../../application-models/explicit-implicit-want-mappings.md)。 | +| parameters | {[key: string]: Object} | 否 | 表示WantParams,由开发者自行决定传入的键值对。默认会携带以下key值:
ohos.aafwk.callerPid 表示拉起方的pid。
ohos.aafwk.param.callerToken 表示拉起方的token。
ohos.aafwk.param.callerUid 表示[bundleInfo](js-apis-bundle-BundleInfo.md#bundleinfo)中的uid,应用包里应用程序的uid。
- component.startup.newRules:表示是否启用新的管控规则。
- moduleName:表示拉起方的模块名,该字段的值即使定义成其他字符串,在传递到另一端时会被修改为正确的值。
- ohos.dlp.params.sandbox:表示dlp文件才会有。 | +| entities | Array\ | 否 | 表示目标Ability额外的类别信息(如:浏览器、视频播放器),在隐式Want中是对action字段的补充。在隐式Want中,您可以定义该字段,来过滤匹配Ability类型。具体参考:[entity说明](js-apis-app-ability-wantConstant.md#wantconstantentity)。 | | moduleName9+ | string | 否 | 表示待启动的Ability所属的模块(module)。 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md b/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md index c2463df35c..32415c68aa 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md +++ b/zh-cn/application-dev/reference/apis/js-apis-nfcTag.md @@ -382,7 +382,7 @@ getNdef(tagInfo: [TagInfo](#taginfo)): [NdefTag](js-apis-nfctech.md#ndeftag9) ## tag.getMifareClassic9+ -getMifareClassic(tagInfo: [TagInfo](#taginfo)): [MifareClassicTag](js-apis-nfctech.md#mifareclassictag-9) +getMifareClassic(tagInfo: [TagInfo](#taginfo)): [MifareClassicTag](js-apis-nfctech.md#mifareclassictag9) 获取MIFARE Classic类型Tag对象,通过该对象访问支持MIFARE Classic技术类型的Tag。 diff --git a/zh-cn/application-dev/website-changelogs.md b/zh-cn/application-dev/website-changelogs.md new file mode 100644 index 0000000000..48b9ebb098 --- /dev/null +++ b/zh-cn/application-dev/website-changelogs.md @@ -0,0 +1,57 @@ +# Changelogs + +- OpenHarmony 4.0.1.1 + - [帐号](../release-notes/changelogs/OpenHarmony_4.0.1.1/changelogs-account_os_account.md) +- OpenHarmony 4.0.1.5 + - [位置服务](../release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-geoLocationManager.md) + - [WiFi](../release-notes/changelogs/OpenHarmony_4.0.1.5/changelogs-wifiManager.md) +- OpenHarmony 4.0.2.1 + - [Web](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelog-web.md) + - [元能力](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-ability.md) + - [蓝牙](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-bluetooth.md) + - [分布式数据管理](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-distributeddatamgr.md) + - [文件管理](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-filemanagement.md) + - [全球化](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-global.md) + - [媒体](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-media.md) + - [测试框架](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-testfwk_arkxtest.md) + - [USB](../release-notes/changelogs/OpenHarmony_4.0.2.1/changelogs-usb.md) +- OpenHarmony 4.0.2.2 + - [Web](../release-notes/changelogs/OpenHarmony_4.0.2.2/changelog-web.md) + - [全球化](../release-notes/changelogs/OpenHarmony_4.0.2.2/changelogs-global.md) +- OpenHarmony 4.0.2.3 + - [元能力](../release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ability.md) + - [通知](../release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-ans.md) + - [ArkUI](../release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-arkui.md) + - [USB](../release-notes/changelogs/OpenHarmony_4.0.2.3/changelogs-usb.md) +- OpenHarmony 4.0.2.5 + - [电话服务](../release-notes/changelogs/OpenHarmony_4.0.2.5/changelogs-telephony.md) +- OpenHarmony 4.0.3.2 + - [分布式软总线](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-softbus.md) + - [程序访问控制](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-accesstoken.md) + - [安全](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-security.md) + - [Web](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelog-web.md) + - [帐号](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-account_os_account.md) + - [ArkUI](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-arkui.md) + - [包管理](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-bundlemanager.md) + - [公共事件](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-ces.md) + - [文件管理](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-filemanagement.md) + - [剪贴板](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-pasteboard.md) + - [电源服务](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-power.md) + - [泛Sensor](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-sensor.md) + - [启动](../release-notes/changelogs/OpenHarmony_4.0.3.2/changelogs-startup.md) + - [包管理](../release-notes/changelogs/OpenHarmony_4.0.3.3/changelogs-bundlemanager.md) +- OpenHarmony 4.0.5.1 + - [全局资源调度](../release-notes/changelogs/OpenHarmony_4.0.5.1/changelog-resourceschedule.md) +- OpenHarmony 4.0.5.2 + - [元能力](../release-notes/changelogs/OpenHarmony_4.0.5.2/changelogs-ability.md) + - [泛Sensor](../release-notes/changelogs/OpenHarmony_4.0.5.2/changelogs-miscdevice.md) +- OpenHarmony 4.0.5.2 + - [输入法框架](../release-notes/changelogs/OpenHarmony_4.0.5.3/changelog-imf.md) + - [主题框架-锁屏](../release-notes/changelogs/OpenHarmony_4.0.5.3/changelog-screenlock.md) + - [主题框架-壁纸](../release-notes/changelogs/OpenHarmony_4.0.5.3/changelog-wallpaper.md) +- OpenHarmony 4.0.6.1 + - [安全-HUKS](../release-notes/changelogs/OpenHarmony_4.0.6.1/changelog-huks.md) + - [Web](../release-notes/changelogs/OpenHarmony_4.0.6.1/changelog-web.md) + - [USB](../release-notes/changelogs/OpenHarmony_4.0.6.1/changelogs-usb.md) +- OpenHarmony 4.0.6.2 + - [全球化](../release-notes/changelogs/OpenHarmony_4.0.6.2/changelogs-global.md) diff --git a/zh-cn/release-notes/changelogs/list.txt b/zh-cn/release-notes/changelogs/list.txt new file mode 100644 index 0000000000..4bdf84470e --- /dev/null +++ b/zh-cn/release-notes/changelogs/list.txt @@ -0,0 +1,43 @@ +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.1.1\changelogs-account_os_account.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.1.5\changelogs-geoLocationManager.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.1.5\changelogs-wifiManager.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelog-web.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-ability.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-bluetooth.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-distributeddatamgr.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-filemanagement.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-global.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-media.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-testfwk_arkxtest.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.1\changelogs-usb.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.2\changelog-web.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.2\changelogs-global.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.3\changelogs-ability.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.3\changelogs-ans.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.3\changelogs-arkui.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.3\changelogs-usb.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.2.5\changelogs-telephony.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\ changelogs-softbus.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelog-accesstoken.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelog-security.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelog-web.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-account_os_account.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-arkui.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-bundlemanager.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-ces.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-filemanagement.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-pasteboard.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-power.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-sensor.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.2\changelogs-startup.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.3.3\changelogs-bundlemanager.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.5.1\changelog-resourceschedule.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.5.2\changelogs-ability.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.5.2\changelogs-miscdevice.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.5.3\changelog-imf.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.5.3\changelog-screenlock.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.5.3\changelog-wallpaper.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.6.1\changelog-huks.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.6.1\changelog-web.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.6.1\changelogs-usb.md +D:\Gitee\OpenHarmony-master\docs\zh-cn\release-notes\changelogs\OpenHarmony_4.0.6.2\changelogs-global.md -- GitLab