From 2d400d7c63fa9208f0b9948800269c8df0e579da Mon Sep 17 00:00:00 2001 From: Gloria Date: Tue, 15 Aug 2023 15:21:31 +0800 Subject: [PATCH] Update docs against 21710+21757+21786 Signed-off-by: wusongqing --- .../reference/apis/js-apis-image.md | 64 +++++++++---------- ...ner-application-serviceExtensionContext.md | 4 +- ...apis-inner-application-uiAbilityContext.md | 4 +- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-image.md b/en/application-dev/reference/apis/js-apis-image.md index e09c5fd1a1..7bf639b9bd 100644 --- a/en/application-dev/reference/apis/js-apis-image.md +++ b/en/application-dev/reference/apis/js-apis-image.md @@ -1732,7 +1732,7 @@ Creates an array of **PixelMap** objects based on the default parameters. This A **Example** ```js -imageSourceApi.createPixelMap( pixelmaplist => { +imageSourceApi.createPixelMapList( pixelmaplist => { console.info('Succeeded in creating pixelmaplist object.'); }) ``` @@ -1763,7 +1763,7 @@ let decodeOpts = { desiredPixelFormat: 3, index: 0, }; -imageSourceApi.createPixelMap(decodeOpts, pixelmaplist => { +imageSourceApi.createPixelMapList(decodeOpts, pixelmaplist => { console.log('Succeeded in creating pixelmaplist object.'); }) ``` @@ -2839,9 +2839,9 @@ Defines image decoding options. | Name | Type | Readable| Writable| Description | | ------------------ | ---------------------------------- | ---- | ---- | ---------------- | -| sampleSize | number | Yes | Yes | Thumbnail sampling size.| +| sampleSize | number | Yes | Yes | Thumbnail sampling size. Currently, this option can only be set to **1**.| | rotate | number | Yes | Yes | Rotation angle. | -| editable | boolean | Yes | Yes | Whether the image is editable. | +| editable | boolean | Yes | Yes | Whether the image is editable. If this option is set to **false**, the image cannot be edited again, and operations such as cropping will fail. | | desiredSize | [Size](#size) | Yes | Yes | Expected output size. | | desiredRegion | [Region](#region7) | Yes | Yes | Region to decode. | | desiredPixelFormat | [PixelMapFormat](#pixelmapformat7) | Yes | Yes | Pixel map format for decoding.| @@ -2899,34 +2899,34 @@ Describes the exchangeable image file format (EXIF) data of an image. | GPS_LONGITUDE | "GPSLongitude" | Image longitude. | | GPS_LATITUDE_REF | "GPSLatitudeRef" | Latitude reference, for example, N or S. | | GPS_LONGITUDE_REF | "GPSLongitudeRef" | Longitude reference, for example, W or E. | -| DATE_TIME_ORIGINAL9+ | "DateTimeOriginal" | Shooting time, for example, 2022:09:06 15:48:00. | -| EXPOSURE_TIME9+ | "ExposureTime" | Exposure time, for example, 1/33 sec.| -| SCENE_TYPE9+ | "SceneType" | Shooting scene type, for example, portrait, scenery, motion, and night. | -| ISO_SPEED_RATINGS9+ | "ISOSpeedRatings" | ISO sensitivity or ISO speed, for example, 400. | -| F_NUMBER9+ | "FNumber" | Aperture, for example, f/1.8. | -| DATE_TIME10+ | "DateTime" | Date and time. | -| GPS_TIME_STAMP10+ | "GPSTimeStamp" | GPS timestamp. | -| GPS_DATE_STAMP10+ | "GPSDateStamp" | GPS date stamp. | -| IMAGE_DESCRIPTION10+ | "ImageDescription" | Image description. | -| MAKE10+ | "Make" | Vendor. | -| PHOTO_MODE10+ | "PhotoMode " | Photo mode. | -| SENSITIVITY_TYPE10+ | "SensitivityType" | Sensitivity type. | -| STANDARD_OUTPUT_SENSITIVITY10+ | "StandardOutputSensitivity" | Standard output sensitivity. | -| RECOMMENDED_EXPOSURE_INDEX10+ | "RecommendedExposureIndex" | Recommended exposure index. | -| ISO_SPEED10+ | "ISOSpeedRatings" | ISO speed. | -| APERTURE_VALUE10+ | "ApertureValue" | Aperture value. | -| EXPOSURE_BIAS_VALUE10+ | "ExposureBiasValue" | Exposure bias value. | -| METERING_MODE10+ | "MeteringMode" | Metering mode. | -| LIGHT_SOURCE10+ | "LightSource" | Light source. | -| FLASH 10+ | "Flash" | Flash status. | -| FOCAL_LENGTH 10+ | "FocalLength" | Focal length. | -| USER_COMMENT 10+ | "UserComment" | User comment. | -| PIXEL_X_DIMENSION 10+ | "PixelXDimension" | Pixel X dimension. | -| PIXEL_Y_DIMENSION10+ | "PixelYDimension" | Pixel Y dimension. | -| WHITE_BALANCE 10+ | "WhiteBalance" | White balance. | -| FOCAL_LENGTH_IN_35_MM_FILM 10+ | "FocalLengthIn35mmFilm" | Focal length in 35mm film. | -| CAPTURE_MODE 10+ | "HwMnoteCaptureMode" | Capture mode. | -| PHYSICAL_APERTURE 10+ | "HwMnotePhysicalAperture" | Physical aperture. | +| DATE_TIME_ORIGINAL9+ | "DateTimeOriginal" | Shooting time, for example, 2022:09:06 15:48:00. This attribute is read-only. | +| EXPOSURE_TIME9+ | "ExposureTime" | Exposure time, for example, 1/33 sec. Currently, this attribute is read-only.| +| SCENE_TYPE9+ | "SceneType" | Shooting scene type, for example, portrait, scenery, motion, and night. Currently, this attribute is read-only. | +| ISO_SPEED_RATINGS9+ | "ISOSpeedRatings" | ISO sensitivity or ISO speed, for example, 400. Currently, this attribute is read-only. | +| F_NUMBER9+ | "FNumber" | Aperture, for example, f/1.8. Currently, this attribute is read-only. | +| DATE_TIME10+ | "DateTime" | Date and time. Currently, this attribute is read-only. | +| GPS_TIME_STAMP10+ | "GPSTimeStamp" | GPS timestamp. Currently, this parameter is read-only. | +| GPS_DATE_STAMP10+ | "GPSDateStamp" | GPS date stamp. Currently, this attribute is read-only. | +| IMAGE_DESCRIPTION10+ | "ImageDescription" | Image description. Currently, this attribute is read-only. | +| MAKE10+ | "Make" | Vendor. Currently, this attribute is read-only. | +| PHOTO_MODE10+ | "PhotoMode " | Photo mode. Currently, this attribute is read-only. | +| SENSITIVITY_TYPE10+ | "SensitivityType" | Sensitivity type. Currently, this attribute is read-only. | +| STANDARD_OUTPUT_SENSITIVITY10+ | "StandardOutputSensitivity" | Standard output sensitivity. Currently, this attribute is read-only. | +| RECOMMENDED_EXPOSURE_INDEX10+ | "RecommendedExposureIndex" | Recommended exposure index. Currently, this attribute is read-only. | +| ISO_SPEED10+ | "ISOSpeedRatings" | ISO speed. Currently, this attribute is read-only. | +| APERTURE_VALUE10+ | "ApertureValue" | Aperture value. Currently, this attribute is read-only. | +| EXPOSURE_BIAS_VALUE10+ | "ExposureBiasValue" | Exposure bias value. Currently, this attribute is read-only. | +| METERING_MODE10+ | "MeteringMode" | Metering mode. Currently, this attribute is read-only. | +| LIGHT_SOURCE10+ | "LightSource" | Light source. Currently, this attribute is read-only. | +| FLASH 10+ | "Flash" | Flash status. Currently, this attribute is read-only. | +| FOCAL_LENGTH 10+ | "FocalLength" | Focal length. Currently, this attribute is read-only. | +| USER_COMMENT 10+ | "UserComment" | User comment. Currently, this attribute is read-only. | +| PIXEL_X_DIMENSION 10+ | "PixelXDimension" | Pixel X dimension. Currently, this attribute is read-only. | +| PIXEL_Y_DIMENSION10+ | "PixelYDimension" | Pixel Y dimension. Currently, this attribute is read-only. | +| WHITE_BALANCE 10+ | "WhiteBalance" | White balance. Currently, this attribute is read-only. | +| FOCAL_LENGTH_IN_35_MM_FILM 10+ | "FocalLengthIn35mmFilm" | Focal length in 35mm film. Currently, this attribute is read-only. | +| CAPTURE_MODE 10+ | "HwMnoteCaptureMode" | Capture mode. Currently, this parameter is read-only. | +| PHYSICAL_APERTURE 10+ | "HwMnotePhysicalAperture" | Physical aperture. Currently, this parameter is read-only. | ## ImageFormat9+ diff --git a/en/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md b/en/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md index 5d20e8796f..386d4f8c06 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-serviceExtensionContext.md @@ -1324,7 +1324,7 @@ Observe the following when using this API: - If **exported** of the target ability is **false** in cross-application scenarios, the caller must have the **ohos.permission.START_INVISIBLE_ABILITY** permission. - The rules for using this API in the same-device and cross-device scenarios are different. For details, see [Component Startup Rules (Stage Model)](../../application-models/component-startup-rules.md). -**Required permissions**: ohos.permission.NOTIFICATION_CONTROLLER +**Required permissions**: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION **System capability**: SystemCapability.Ability.AbilityRuntime.Core @@ -1638,7 +1638,7 @@ Observe the following when using this API: - If **exported** of the target ability is **false** in cross-application scenarios, the caller must have the **ohos.permission.START_INVISIBLE_ABILITY** permission. - The rules for using this API in the same-device and cross-device scenarios are different. For details, see [Component Startup Rules (Stage Model)](../../application-models/component-startup-rules.md). -**Required permissions**: ohos.permission.NOTIFICATION_CONTROLLER and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS +**Required permissions**: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **System capability**: SystemCapability.Ability.AbilityRuntime.Core diff --git a/en/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md b/en/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md index d4631ab32d..e976f42483 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-uiAbilityContext.md @@ -1700,7 +1700,7 @@ Observe the following when using this API: - If **exported** of the target ability is **false** in cross-application scenarios, the caller must have the **ohos.permission.START_INVISIBLE_ABILITY** permission. - The rules for using this API in the same-device and cross-device scenarios are different. For details, see [Component Startup Rules (Stage Model)](../../application-models/component-startup-rules.md). -**Required permissions**: ohos.permission.NOTIFICATION_CONTROLLER +**Required permissions**: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION **System capability**: SystemCapability.Ability.AbilityRuntime.Core @@ -2719,7 +2719,7 @@ Observe the following when using this API: - If **exported** of the target ability is **false** in cross-application scenarios, the caller must have the **ohos.permission.START_INVISIBLE_ABILITY** permission. - The rules for using this API in the same-device and cross-device scenarios are different. For details, see [Component Startup Rules (Stage Model)](../../application-models/component-startup-rules.md). -**Required permissions**: ohos.permission.NOTIFICATION_CONTROLLER and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS +**Required permissions**: ohos.permission.ABILITY_BACKGROUND_COMMUNICATION and ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS **System capability**: SystemCapability.Ability.AbilityRuntime.Core -- GitLab