diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index a04713420c37bcfb6d9a9e2a6811dc6086b16272..66e0c2b1d6e9001ac908ddaaa9091e38b6133885 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -8339,6 +8339,7 @@ declare enum RepeatMode { * @since 10 */ /** + * The source image's slices are tiled. Tiles beyond the border box will be clipped. * The source image's slices are tiled. Tiles beyond the border box will be clipped. * * @syscap SystemCapability.ArkUI.ArkUI.Full @@ -9411,7 +9412,7 @@ declare interface PickerTextStyle { * @since 10 */ /** - * Font color. + * Font color.. * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full diff --git a/api/@internal/component/ets/select.d.ts b/api/@internal/component/ets/select.d.ts index 41fcdac73f4f97b4797cc06b6e43362cdfc818b7..93ad43af7e13e529a6388dd3767d04d5a50208f1 100644 --- a/api/@internal/component/ets/select.d.ts +++ b/api/@internal/component/ets/select.d.ts @@ -1224,20 +1224,9 @@ declare class SelectAttribute extends CommonMethod { * @crossplatform * @atomicservice * @since 20 + * @arkts 1.1&1.2 */ showInSubWindow(showInSubWindow: Optional): SelectAttribute; - - /** - * Set whether to display the default selected icon - * - * @param { boolean } show - whether to display the default selected icon. - * @returns { SelectAttribute } the attribute of the select. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - showDefaultSelectedIcon(show: boolean): SelectAttribute; } /** diff --git a/api/@internal/component/ets/text_common.d.ts b/api/@internal/component/ets/text_common.d.ts index 8452d5831a2d114e931618782cc98d6afbc53d9c..ed32d0cf0d90ceceda867130512b2d47533c6f8b 100644 --- a/api/@internal/component/ets/text_common.d.ts +++ b/api/@internal/component/ets/text_common.d.ts @@ -1505,123 +1505,6 @@ declare enum KeyboardAppearance { DARK_IMMERSIVE = 3, } -/** - * Defines shader style class. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -declare class ShaderStyle { -} - -/** - * Defines linear gradient class. - * - * @extends ShaderStyle - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -declare class LinearGradientStyle extends ShaderStyle { - /** - * The constructor. - * - * @param { LinearGradientOptions } options - The options of the gradient. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - constructor(options: LinearGradientOptions); - - /** - * The options of the gradient. - * angle: Angle of linear gradient. - * direction: Direction of Linear Gradient. - * colors: Color description for gradients. - * repeating: if the gradient colors with repeated coloring. - * - * @type { LinearGradientOptions } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - options: LinearGradientOptions; -} - -/** - * Defines radial gradient class. - * - * @extends ShaderStyle - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -declare class RadialGradientStyle extends ShaderStyle { - /** - * The constructor. - * - * @param { RadialGradientOptions } options - The options of the gradient. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - constructor(options: RadialGradientOptions); - - /** - * The options of the gradient. - * center: Center point of radial gradient - * radius: Radius of Radial Gradient. value range [0, +∞) - * colors: Color description for gradients - * repeating: Refill. The default value is false - * - * @type { RadialGradientOptions } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - options: RadialGradientOptions; -} - -/** - * Defines a shader with single color. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ -declare class ColorShaderStyle extends ShaderStyle { - /** - * The constructor. - * - * @param { ResourceColor } color - The color used by shader. - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - constructor(color: ResourceColor); - - /** - * The color of the shader. - * - * @type { RadialGradientOptions } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 20 - */ - color: ResourceColor; -} - /** * Defines the line spacing options. * @interface LineSpacingOptions @@ -1641,122 +1524,4 @@ declare class ColorShaderStyle extends ShaderStyle { * @since 20 */ onlyBetweenLines?: boolean; -} - -/** - * Defines the reason for text changes. - * - * @enum { number } - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ -declare enum TextChangeReason { - /** - * Default value. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - UNKNOWN = 0, - - /** - * Reason for input from input method. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - IME_INPUT = 1, - - /** - * Reason for paste. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - PASTE = 2, - - /** - * Reason for cut. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - CUT = 3, - - /** - * Reason for drag. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - DRAG = 4, - - /** - * Reason for auto fill. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - AUTO_FILL = 5, - - /** - * Reason for ai write. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - AI_WRITE = 6, - - /** - * Reason for redo. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - REDO = 7, - - /** - * Reason for undo. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - UNDO = 8, - - /** - * Reason for controller methods. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - CONTROLLER = 9, - - /** - * Reason for accessibilty methods. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - ACCESSIBILITY = 10, - - /** - * Reason for input. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @atomicservice - * @since 20 - */ - INPUT = 1 } \ No newline at end of file diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index ade286994b58bc024a16e978fd7393d343935965..64f8da8d508e132f422a078bf84bbe210d9506e7 100644 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -4492,10 +4492,9 @@ declare class WebController { * The result of the script execution will be returned through an asynchronous callback. * This method must be used on the UI thread, and the callback will also be invoked on the UI thread. *

API Note:
- * The state of JavaScript is no longer persisted across navigations like loadUrl. - * For example, global variables and functions defined before calling loadUrl will not exist in the loaded page. - * It is recommended that applications use registerJavaScriptProxy to ensure that the JavaScript state can be persisted across page navigations. - *

+ * Executes a JavaScript script. This API uses an asynchronous callback to return the script execution result. + * runJavaScript can be invoked only after loadUrl is executed. For example, it can be invoked in onPageEnd. + *

* * @param { object } options The options with a piece of code and a callback. * @syscap SystemCapability.Web.Webview.Core @@ -4549,6 +4548,10 @@ declare class WebController { /** * Registers the JavaScript object and method list. + *

API Note:
+ * You should register registerJavaScriptProxy either in synchronous list or in asynchronous list. Otherwise,this API fails to be registered. + * The registerJavaScriptProxy API must be used together with the deleteJavaScriptRegister API to prevent memory leak. + *

* * @param { object } options - The option with the JavaScript object and method list. * @syscap SystemCapability.Web.Webview.Core @@ -7083,6 +7086,9 @@ declare class WebAttribute extends CommonMethod { /** * Sets how to load HTTP and HTTPS content. + *

API Note:
+ * Sets wheater to enable loading of HTTP and HTTPS hybrid content can be loaded. By default, this feature is disabled. + *

* * @param { MixedMode } mixedMode - The mixed mode, which can be {@link MixedMode}. * @returns { WebAttribute } @@ -7091,6 +7097,9 @@ declare class WebAttribute extends CommonMethod { */ /** * Sets how to load HTTP and HTTPS content. + *

API Note:
+ * Sets wheater to enable loading of HTTP and HTTPS hybrid content can be loaded. By default, this feature is disabled. + *

* * @param { MixedMode } mixedMode - The mixed mode, which can be {@link MixedMode}. * @returns { WebAttribute } @@ -7099,9 +7108,10 @@ declare class WebAttribute extends CommonMethod { * @since 11 */ /** - * Sets the behavior when a secure origin attempts to load a resource from an insecure origin. - * The default is MixedMode.None, meaning not allow a secure origin to load content from an insecure origin. - * + * Sets how to load HTTP and HTTPS content. + *

API Note:
+ * Sets wheater to enable loading of HTTP and HTTPS hybrid content can be loaded. By default, this feature is disabled. + *

* * @param { MixedMode } mixedMode - The mixed mode, which can be {@link MixedMode}. * @returns { WebAttribute } @@ -7170,6 +7180,12 @@ declare class WebAttribute extends CommonMethod { /** * Injects the JavaScript object into window and invoke the function in window. + *

API Note:
+ * Registers a JavaScript object with the window. APIs of this object can then be invoked in the window. + * The parameters cannot be updateed. This API can be used in synchronous or asynchronous mode, or in both modes. + * If the API can be used in both synchronous and asynchronous modes, it is called asynchronously by default. + * Only one object can be registered through this API. To register multiple objects, use registerJavaScriptProxy. + *

* * @param { object } javaScriptProxy - The JavaScript object to be injected. * @returns { WebAttribute } @@ -7178,6 +7194,12 @@ declare class WebAttribute extends CommonMethod { */ /** * Injects the JavaScript object into window and invoke the function in window. + *

API Note:
+ * Registers a JavaScript object with the window. APIs of this object can then be invoked in the window. + * The parameters cannot be updateed. This API can be used in synchronous or asynchronous mode, or in both modes. + * If the API can be used in both synchronous and asynchronous modes, it is called asynchronously by default. + * Only one object can be registered through this API. To register multiple objects,use registerJavaScriptProxy. + *

* * @param { object } javaScriptProxy - The JavaScript object to be injected. * @returns { WebAttribute } @@ -7186,6 +7208,12 @@ declare class WebAttribute extends CommonMethod { */ /** * Injects the JavaScript object into window and invoke the function in window. + *

API Note:
+ * Registers a JavaScript object with the window. APIs of this object can then be invoked in the window. + * The parameters cannot be updateed. This API can be used in synchronous or asynchronous mode,or in both modes. + * If the API can be used in both synchronous and asynchronous modes, it is called asynchronously by default. + * Only one object can be registered through this API. To register multiple objects,use registerJavaScriptProxy. + *

* * @param { object } javaScriptProxy - The JavaScript object to be injected. * @returns { WebAttribute } @@ -7572,6 +7600,9 @@ declare class WebAttribute extends CommonMethod { /** * Triggered at the begin of web page loading. + *

API Note:
+ * Called when the web page starts to be loaded. This API is called only for the main frame content, and not for the iframe or frameset content. + *

* * @param { function } callback The triggered function at the begin of web page loading. * @returns { WebAttribute } @@ -7580,6 +7611,9 @@ declare class WebAttribute extends CommonMethod { */ /** * Triggered at the begin of web page loading. + *

API Note:
+ * Called when the web page starts to be loaded. This API is called only for the main frame content, and not for the iframe or frameset content. + *

* * @param { function } callback The triggered function at the begin of web page loading. * @returns { WebAttribute } @@ -7589,6 +7623,9 @@ declare class WebAttribute extends CommonMethod { */ /** * Triggered at the begin of web page loading. + *

API Note:
+ * Called when the web page starts to be loaded. This API is called only for the main frame content, and not for the iframe or frameset content. + *

* * @param { function } callback The triggered function at the begin of web page loading. * @returns { WebAttribute } @@ -7598,8 +7635,10 @@ declare class WebAttribute extends CommonMethod { * @since 11 */ /** - * Called when the web page starts to be loaded. - * This API is called only for the main frame, and not for the iframe or frameset content. + * Triggered at the begin of web page loading. + *

API Note:
+ * Called when the web page starts to be loaded. This API is called only for the main frame content, and not for the iframe or frameset content. + *

* * @param { Callback } callback The triggered function at the begin of web page loading. * @returns { WebAttribute } @@ -7642,6 +7681,10 @@ declare class WebAttribute extends CommonMethod { /** * Triggered when the title of the main application document changes. + *

API Note:
+ * Called when the document title of a web page is changed. + * If the element is not set for an HTML5 page, the corresponding URL is returned. + * </p> * * @param { function } callback The triggered function when the title of the main application document changes. * @returns { WebAttribute } @@ -7650,6 +7693,10 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { */ /** * Triggered when the title of the main application document changes. + * <p><strong>API Note</strong>:<br> + * Called when the document title of a web page is changed. + * If the <title> element is not set for an HTML5 page, the corresponding URL is returned. + * </p> * * @param { function } callback The triggered function when the title of the main application document changes. * @returns { WebAttribute } @@ -7660,8 +7707,7 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { */ /** * Notifies the application that the title has changed.. - * If the page being loaded does not specify a title via the <title> element, - * ArkWeb will generate a title baseed on the URL and return it to the application. + * If the page being loaded does not specify a title via, the corresponding URL is returned. * * @param { Callback<OnTitleReceiveEvent> } callback The triggered function when the title of the main application document changes. * @returns { WebAttribute } @@ -8534,6 +8580,7 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { /** * Called to notify users when an SSL error occurs with a request for the main frame. * To include errors with requests for subframes, use the OnSslErrorEvent API. + * </p> * * @param { function } callback The triggered callback when the Web page receives an ssl Error. * @returns { WebAttribute } @@ -8543,6 +8590,7 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { /** * Called to notify users when an SSL error occurs with a request for the main frame. * To include errors with requests for subframes, use the OnSslErrorEvent API. + * </p> * * @param { function } callback The triggered callback when the Web page receives an ssl Error. * @returns { WebAttribute } @@ -8553,6 +8601,7 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { /** * Called to notify users when an SSL error occurs with a request for the main frame. * To include errors with requests for subframes, use the OnSslErrorEvent API. + * </p> * * @param { Callback<OnSslErrorEventReceiveEvent> } callback The triggered callback when the Web page receives an ssl Error. * @returns { WebAttribute } @@ -8565,6 +8614,7 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { /** * Called to notify users when an SSL error occurs during the loading of resources (for the main frame and subframes). * To handle SSL errors for requests for the main frame, use the isMainFrame field to distinguish. + * </p> * * @param { OnSslErrorEventCallback } callback The triggered callback when the Web page receives an ssl Error. * @returns { WebAttribute } @@ -9374,8 +9424,7 @@ declare class WebAttribute extends CommonMethod<WebAttribute> { * When the specified page or document starts to be loaded, the script is executed on any page whose source matches scriptRules. * <p><strong>API Note</strong>:<br> * The script runs before any JavaScript code of the page, when the DOM tree may not have been loaded or rendered. - * The script is executed in the lexicographic order instead of array sequence. - * if the array sequemce is required, you are advised to use the runJavaScriptOnDocumentStart interface. + * The script is executed in the lexicographic order, not the array order.if the array sequemce is required, you are advised to use the runJavaScriptOnDocumentStart interface. * You are not advised to use this API together with runJavaScriptOnDocumentStart. * </p> * diff --git a/api/@internal/component/ets/xcomponent.d.ts b/api/@internal/component/ets/xcomponent.d.ts index c49c461306c743e3d4e427a355eb5de5c7529e38..e516179cf7695a4ae6fba6cb27ef95ddbe519bcf 100644 --- a/api/@internal/component/ets/xcomponent.d.ts +++ b/api/@internal/component/ets/xcomponent.d.ts @@ -35,6 +35,15 @@ * @atomicservice * @since 20 */ +/** + * Surface Rectangle information. + * + * @interface SurfaceRect + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ declare interface SurfaceRect { /** * X coordinate of the surface rectangle relative to the upper left corner of the XComponent. @@ -46,6 +55,15 @@ declare interface SurfaceRect { * @atomicservice * @since 12 */ + /** + * The horizontal offset of the surface relative to XComponent. + * + * @type { ?number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ /** * The horizontal offset of the surface relative to XComponent. * @@ -96,6 +114,15 @@ declare interface SurfaceRect { * @atomicservice * @since 20 */ + /** + * The width of the surface created by XComponent + * + * @type { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ surfaceWidth: number; /** @@ -266,6 +293,24 @@ declare class XComponentController { * @atomicservice * @since 20 */ + /** + * Set the rectangle information of surface created by XComponent. + * + * @param { SurfaceRect } rect - The surface rectangle information. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + /** + * Set the rectangle information of surface created by XComponent. + * + * @param { SurfaceRect } rect - The surface rectangle information. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ setXComponentSurfaceRect(rect: SurfaceRect): void; /** @@ -306,6 +351,24 @@ declare class XComponentController { * @atomicservice * @since 20 */ + /** + * Set the rotation options of the Surface created by XComponent. + * + * @param { SurfaceRotationOptions } rotationOptions - The surface rotation options. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + /** + * Set the rotation options of the Surface created by XComponent. + * + * @param { SurfaceRotationOptions } rotationOptions - The surface rotation options. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void; /** @@ -346,6 +409,24 @@ declare class XComponentController { * @atomicservice * @since 20 */ + /** + * Called after the surface is first created. + * + * @param { string } surfaceId - The id of the surface created by XComponent. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + /** + * Called after the surface is first created. + * + * @param { string } surfaceId - The id of the surface created by XComponent. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ onSurfaceCreated(surfaceId: string): void; /** @@ -368,6 +449,26 @@ declare class XComponentController { * @atomicservice * @since 20 */ + /** + * Called after the surface rectangle information is changed. + * + * @param { string } surfaceId - The id of the surface created by XComponent. + * @param { SurfaceRect } rect - The rectangle information of the surface created by XComponent. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + /** + * Called after the surface rectangle information is changed. + * + * @param { string } surfaceId - The id of the surface created by XComponent. + * @param { SurfaceRect } rect - The rectangle information of the surface created by XComponent. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void; /** @@ -388,6 +489,24 @@ declare class XComponentController { * @atomicservice * @since 20 */ + /** + * Called when the surface is about to be destroyed. + * + * @param { string } surfaceId - The id of the surface created by XComponent. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ + /** + * Called when the surface is about to be destroyed. + * + * @param { string } surfaceId - The id of the surface created by XComponent. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 20 + */ onSurfaceDestroyed(surfaceId: string): void; /** diff --git a/api/@ohos.app.ability.AbilityStage.d.ts b/api/@ohos.app.ability.AbilityStage.d.ts index a4e2ace68edb7c1c1b666b49ca1c210d79627f16..33283d1778e6d11d680bb53ef55efae3744f75a2 100644 --- a/api/@ohos.app.ability.AbilityStage.d.ts +++ b/api/@ohos.app.ability.AbilityStage.d.ts @@ -39,6 +39,9 @@ import { Configuration } from './@ohos.app.ability.Configuration'; * @since 10 */ /** + * AbilityStage is a runtime class for HAP files. + * AbilityStage notifies you of when you can perform HAP initialization such as resource pre-loading and thread + * creation during the HAP loading. * AbilityStage is a runtime class for HAP files. * AbilityStage notifies you of when you can perform HAP initialization such as resource pre-loading and thread * creation during the HAP loading. @@ -138,20 +141,6 @@ export default class AbilityStage { */ onAcceptWant(want: Want): string; - /** - * Called back asynchronously upon starting specified ability. - * - * @param { Want } want - Indicates the want info of the started ability. - * @returns { Promise<string> } The user returns an ability string ID. If the ability of this ID has been started before, - * do not create a new instance and pull it back to the top of the stack. - * Otherwise, create a new instance and start it. - * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @stagemodelonly - * @atomicservice - * @since 20 - */ - onAcceptWantAsync(want: Want): Promise<string>; - /** * Called when the UIAbility is started in the specified process. * @@ -226,11 +215,8 @@ export default class AbilityStage { * @since 9 */ /** - * Listens for changes in the system memory level status. - * When the system detects low memory resources, it will proactively invoke this callback. - * You can implement this callback to promptly release non-essential resources (such as cached data or temporary - * objects) upon receiving a memory shortage event, thereby preventing the application process from being forcibly - * terminated by the system. + * Called when the system has decided to adjust the memory level. + * For example, this API can be used when there is not enough memory to run as many background processes as possible. * * <p>**NOTE**: * <br>This API returns the result synchronously and does not support asynchronous callbacks. diff --git a/api/@ohos.app.ability.abilityManager.d.ts b/api/@ohos.app.ability.abilityManager.d.ts index 327e98bcf2e2037183fae89da753d760a9fec547..2fba7c42001e721a170e47e9450d7c0bb826b6a1 100644 --- a/api/@ohos.app.ability.abilityManager.d.ts +++ b/api/@ohos.app.ability.abilityManager.d.ts @@ -543,7 +543,8 @@ declare namespace abilityManager { * * @typedef { _AbilityRunningInfo } * @syscap SystemCapability.Ability.AbilityRuntime.Core - * @since 14 + * @systemapi + * @since 9 */ export type AbilityRunningInfo = _AbilityRunningInfo; diff --git a/api/@ohos.app.ability.wantAgent.d.ts b/api/@ohos.app.ability.wantAgent.d.ts index 75cace35f55af84ef33c4dd8a488c022810ae9ed..c8b63160d950dea180eefb0b8ff9760f885305be 100644 --- a/api/@ohos.app.ability.wantAgent.d.ts +++ b/api/@ohos.app.ability.wantAgent.d.ts @@ -27,6 +27,7 @@ import Context from './application/Context'; /** * Provide the method obtain trigger, cancel, and compare and to obtain * the bundle name, UID of an WantAgent object. + * the bundle name, UID of an WantAgent object. * * @namespace wantAgent * @syscap SystemCapability.Ability.AbilityRuntime.Core @@ -34,7 +35,7 @@ import Context from './application/Context'; */ /** * app.ability.WantAgent is a class that encapsulates a {@link Want} object and allows the application to execute the - * Want at a future time point. The module provides APIs for creating and comparing WantAgent objects, and obtaining + * Want at a future time point.The module provides APIs for creating and comparing WantAgent objects, and obtaining * the user ID and bundle name of a WantAgent object. * * A typical use scenario of WantAgent is notification processing. For example, when a user touches a notification, @@ -563,7 +564,7 @@ declare namespace wantAgent { * @since 9 */ /** - * Extra information of the existing WantAgent object is replaced with that of the new object. + * Extra information of the existing WantAgent object is replaced with that of the new object. * * @syscap SystemCapability.Ability.AbilityRuntime.Core * @atomicservice diff --git a/api/@ohos.enterprise.bluetoothManager.d.ts b/api/@ohos.enterprise.bluetoothManager.d.ts index 4659ee3f9b3731b8ab52e95a6db03078e76bbe4f..8e357cab22d5eec596f07bf5608755078a78a542 100644 --- a/api/@ohos.enterprise.bluetoothManager.d.ts +++ b/api/@ohos.enterprise.bluetoothManager.d.ts @@ -225,60 +225,6 @@ declare namespace bluetoothManager { * @since 20 */ function turnOffBluetooth(admin: Want): void; - - /** - * Adds devices to the list of bluetooth devices that are disallowed to be connected. - * This function can be called by a super administrator. - * - * @permission ohos.permission.ENTERPRISE_MANAGE_BLUETOOTH - * @param { Want } admin - admin indicates the enterprise admin extension ability information. - * The admin must have the corresponding permission. - * @param { Array<string> } deviceIds - IDs of the bluetooth devices to be added to the list. - * The size of the array after setting cannot be greater than 1000. - * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. - * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. - * @throws { BusinessError } 9200010 - A conflict policy has been configured. - * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @stagemodelonly - * @since 20 - */ - function addDisallowedBluetoothDevices(admin: Want, deviceIds: Array<string>): void; - - /** - * Removes devices from the list of bluetooth devices that are disallowed to be connected. - * This function can be called by a super administrator. - * - * @permission ohos.permission.ENTERPRISE_MANAGE_BLUETOOTH - * @param { Want } admin - admin indicates the enterprise admin extension ability information. - * The admin must have the corresponding permission. - * @param { Array<string> } deviceIds - IDs of the bluetooth devices to be removed from the list. - * The size of the array after setting cannot be greater than 1000. - * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. - * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. - * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @stagemodelonly - * @since 20 - */ - function removeDisallowedBluetoothDevices(admin: Want, deviceIds: Array<string>): void; - - /** - * Gets the devices in the list of bluetooth devices that are disallowed to be connected. - * This function can be called by a super administrator. - * - * @permission ohos.permission.ENTERPRISE_MANAGE_BLUETOOTH - * @param { Want } admin - admin indicates the enterprise admin extension ability information. - * If the admin is not empty, it must have the corresponding permission. - * @returns { Array<string> } IDs of the bluetooth devices in the list. - * @throws { BusinessError } 9200001 - The application is not an administrator application of the device. - * @throws { BusinessError } 9200002 - The administrator application does not have permission to manage the device. - * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API. - * @syscap SystemCapability.Customization.EnterpriseDeviceManager - * @stagemodelonly - * @since 20 - */ - function getDisallowedBluetoothDevices(admin: Want): Array<string>; } export default bluetoothManager; diff --git a/api/@ohos.graphics.drawing.d.ts b/api/@ohos.graphics.drawing.d.ts index 5ef649ba82530fc15b67e8b844d81ea8a2f12fc7..4b5ea2c1e5a86413de5260f7b9fdaba3530c4437 100644 --- a/api/@ohos.graphics.drawing.d.ts +++ b/api/@ohos.graphics.drawing.d.ts @@ -3582,6 +3582,7 @@ declare namespace drawing { /** * Enables anti-aliasing for this pen. Anti-aliasing makes the edges of the content smoother. + * If this API is not called, anti-aliasing is disabled by default. * * @param { boolean } aa - Whether to enable anti-aliasing. The value true means to enable anti-aliasing, and false means the opposite. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; diff --git a/api/@ohos.graphics.text.d.ts b/api/@ohos.graphics.text.d.ts index cdbb910aecb988589eb8173c3c2280bd1a7fed39..5ef412c6c7328003d0ef1c6289b46cc658e77902 100755 --- a/api/@ohos.graphics.text.d.ts +++ b/api/@ohos.graphics.text.d.ts @@ -1152,14 +1152,6 @@ declare namespace text { * @since 20 */ trailingSpaceOptimized?: boolean; - - /** - * Whether to enable automatic spacing between Chinese and English for paragraph. - * @type { ?boolean } - * @syscap SystemCapability.Graphics.Drawing - * @since 20 - */ - autoSpace?: boolean; } /** diff --git a/api/@ohos.multimedia.audio.d.ts b/api/@ohos.multimedia.audio.d.ts index c9aea692a374fcc5c9bb48da72daec220dfde780..1c3523a64bcb5c706a1b8d6497d80965c834a5bb 100644 --- a/api/@ohos.multimedia.audio.d.ts +++ b/api/@ohos.multimedia.audio.d.ts @@ -4827,30 +4827,25 @@ declare namespace audio { off(type: 'appVolumeChange', callback?: Callback<VolumeEvent>): void; /** - * Subscribes to active volume type changes. + * Listens for active volume type change events. This method uses a callback to get active volume type. * @param { 'activeVolumeTypeChange' } type - Type of the event to listen for. * Only the activeVolumeTypeChange event is supported. - * @param { Callback<AudioVolumeType> } callback - Callback used to return the active volume type. + * @param { Callback<AudioVolumeType> } callback - Callback used to get active volume type. * @throws { BusinessError } 202 - Not system App. - * @throws { BusinessError } 6800101 - Parameter verification failed. * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi * @since 20 */ on(type: 'activeVolumeTypeChange', callback: Callback<AudioVolumeType>): void; /** - * Unsubscribes from active volume type changes. - * @param { 'activeVolumeTypeChange' } type - Type of the event to unregister. + * Unsubscribes to the active volume type change events. + * @param { 'activeVolumeTypeChange' } type - Type of the event to be unregistered. * Only the activeVolumeTypeChange event is supported. - * @param { Callback<AudioVolumeType> } callback - Callback used to return the active volume type. * @throws { BusinessError } 202 - Not system App. - * @throws { BusinessError } 6800101 - Parameter verification failed. * @syscap SystemCapability.Multimedia.Audio.Volume - * @systemapi * @since 20 */ - off(type: 'activeVolumeTypeChange', callback?: Callback<AudioVolumeType>): void; + off(type: 'activeVolumeTypeChange'): void; } /** diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 89c9a7c5f4fe9a50e3f54e4de6dae11f5ccf74f8..7c1a3e2367a2ff4a2bd869054800222fec647648 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -103,6 +103,13 @@ declare namespace camera { * @atomicservice * @since 19 */ + /** + * Disappear status. + * + * @syscap SystemCapability.Multimedia.Camera.Core + * @atomicservice + * @since 19 + */ CAMERA_STATUS_DISAPPEAR = 1, /** @@ -234,7 +241,7 @@ declare namespace camera { readonly format: CameraFormat; /** - * Picture size. + * Resolution. The settings are the width and height of the camera's resolution, not the width and height of the actual output image. * * @type { Size } * @readonly @@ -327,7 +334,7 @@ declare namespace camera { */ interface VideoProfile extends Profile { /** - * Frame rate in unit fps (frames per second). + * Frame rate range, in fps (frames per second). * * @type { FrameRateRange } * @readonly @@ -778,7 +785,7 @@ declare namespace camera { } /** - * Camera manager object. + * Camera Manager class, you need to get the camera manager instance through getCameraManager interface before using it. * * @interface CameraManager * @syscap SystemCapability.Multimedia.Camera.Core @@ -794,7 +801,7 @@ declare namespace camera { */ interface CameraManager { /** - * Gets supported camera descriptions. + * Get the supported camera device objects and return the results synchronously. * * @returns { Array<CameraDevice> } An array of supported cameras. * @syscap SystemCapability.Multimedia.Camera.Core @@ -811,7 +818,7 @@ declare namespace camera { getSupportedCameras(): Array<CameraDevice>; /** - * Gets supported output capability for specific camera. + * Queries the output capability supported by the camera device in the specified mode and returns the result synchronously. * * @param { CameraDevice } camera - Camera device. * @returns { CameraOutputCapability } The camera output capability. @@ -863,7 +870,7 @@ declare namespace camera { getSupportedOutputCapability(camera: CameraDevice, mode: SceneMode): CameraOutputCapability; /** - * Determine whether camera is muted. + * Queries whether the current camera is muted. * * @returns { boolean } Is camera muted. * @syscap SystemCapability.Multimedia.Camera.Core @@ -937,10 +944,15 @@ declare namespace camera { */ /** * Creates a CameraInput instance by camera. + * + * Before using this interface, first through the getSupportedCameras interface to query the current list of camera devices supported by the device, + * the developer needs to be based on specific scenarios to choose the camera device that meets the needs of the developer, + * and then use this interface to create a CameraInput instance. * * @permission ohos.permission.CAMERA * @param { CameraDevice } camera - Camera device used to create the instance. - * @returns { CameraInput } The CameraInput instance. + * @returns { CameraInput } Returns a CameraInput instance. + * Failure of an interface call returns the corresponding error code, which is of type CameraErrorCode. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. @@ -975,11 +987,17 @@ declare namespace camera { */ /** * Creates a CameraInput instance by camera position and type. + * + * Before using this interface, the developer needs to specify the position and type of the camera according to the application's specific usage scenarios, + * for example, to open the front camera to enter the self-timer function. * * @permission ohos.permission.CAMERA - * @param { CameraPosition } position - Target camera position. - * @param { CameraType } type - Target camera type. - * @returns { CameraInput } The CameraInput instance. + * @param { CameraPosition } position - Camera position, first get the supported camera device objects through the getSupportedCameras interface, + * and then get the device position information based on the returned camera device objects. + * @param { CameraType } type - camera type, first get the supported camera device object through the getSupportedCameras interface, + * then get the device type information based on the returned camera device object. + * @returns { CameraInput } Returns a CameraInput instance. Failure of an interface call returns the corresponding error code, + * which is of type CameraErrorCode. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. @@ -1242,8 +1260,9 @@ declare namespace camera { /** * Gets a Session instance by specific scene mode. * - * @param { SceneMode } mode - Scene mode. - * @returns { T } The specific Session instance by specific scene mode. + * @param { SceneMode } mode - The modes supported by the camera. If the passed parameters are abnormal (e.g. out of range, passed null or undefined, etc.), + * the actual interface will not take effect. + * @returns { T } Session instance. Failure of an interface call returns the appropriate error code, which is of type CameraErrorCode. * @throws { BusinessError } 401 - Parameter error. Possible causes: * 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; * 3. Parameter verification failed. @@ -1351,7 +1370,7 @@ declare namespace camera { off(type: 'cameraStatus', callback?: AsyncCallback<CameraStatusInfo>): void; /** - * Subscribes fold status change event callback. + * Registers a listener for folding device fold state changes. Use callback asynchronous callback. * * @param { 'foldStatusChanged' } type - Event type. * @param { AsyncCallback<FoldStatusInfo> } callback - Callback used to get the fold status change. @@ -1717,7 +1736,7 @@ declare namespace camera { readonly isTorchAvailable: boolean; /** - * is torch active + * Whether the flashlight is activated or not. True means the flashlight is activated, false means the flashlight is not activated. * * @type { boolean } * @readonly @@ -1736,7 +1755,7 @@ declare namespace camera { readonly isTorchActive: boolean; /** - * the current torch brightness level. + * Flashlight brightness level, value range is [0,1], the closer to 1, the brighter it is. * * @type { number } * @readonly @@ -1818,7 +1837,7 @@ declare namespace camera { } /** - * Camera status info. + * An instance of the interface returned by the camera manager's callback that represents camera state information. * * @typedef CameraStatusInfo * @syscap SystemCapability.Multimedia.Camera.Core @@ -2263,7 +2282,7 @@ declare namespace camera { */ interface CameraDevice { /** - * Camera id attribute. + * Camera ID attribute. * * @type { string } * @readonly @@ -2395,7 +2414,7 @@ declare namespace camera { readonly hostDeviceType: HostDeviceType; /** - * Camera sensor orientation attribute. + * The camera mounting angle, which does not change with screen rotation, takes values from 0° to 360° in degrees. * * @type { number } * @readonly @@ -2477,7 +2496,7 @@ declare namespace camera { } /** - * Point parameter. + * Point coordinates are used for focus and exposure configuration. * * @typedef Point * @syscap SystemCapability.Multimedia.Camera.Core @@ -2594,7 +2613,8 @@ declare namespace camera { /** * Open camera. * - * @param { boolean } isSecureEnabled - Enable secure camera. + * @param { boolean } isSecureEnabled - Setting true enables the camera to be opened in a safe way, + * setting false does the opposite. Failure of an interface call returns an error code of type CameraErrorCode. * @returns { Promise<bigint> } Promise used to return the result. * @throws { BusinessError } 7400107 - Can not use camera cause of conflict. * @throws { BusinessError } 7400108 - Camera disabled cause of security reason. @@ -3421,7 +3441,7 @@ declare namespace camera { EXPOSURE_MODE_LOCKED = 0, /** - * Auto exposure mode. + * Auto exposure mode. Support exposure area center point setting, you can use AutoExposure.setMeteringPoint to set the exposure area center point. * * @syscap SystemCapability.Multimedia.Camera.Core * @since 10 @@ -3523,7 +3543,7 @@ declare namespace camera { * @since 11 */ /** - * Checks whether a specified exposure mode is supported. + * Check if the exposure mode is supported. * Move to AutoExposureQuery interface from AutoExposure interface since 12. * * @param { ExposureMode } aeMode - Exposure mode @@ -4173,7 +4193,7 @@ declare namespace camera { /** * Gets current focus point. * - * @returns { Point } The current focus point. + * @returns { Point } Used to get the current focus. Failure of the interface call will return the corresponding error code, which is of type CameraErrorCode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @since 11 @@ -4916,7 +4936,7 @@ declare namespace camera { HIGH = 3, /** - * Camera HDF can select mode automatically. + * Selection of the stabilization algorithm is performed automatically. * * @syscap SystemCapability.Multimedia.Camera.Core * @since 10 @@ -6591,7 +6611,11 @@ declare namespace camera { getMeteringPoint(): Point; /** - * Set the center point of the metering area. + * Set the center point of the exposure area, the exposure point should be located in the 0-1 coordinate system, + * which is {0, 0} in the upper left corner and {1, 1} in the lower right corner. + * This coordinate system is based on the horizontal device orientation when the device charging port is on the right side, + * e.g. the preview interface layout of an application is based on the vertical direction when the device charging port is on the lower side, + * the layout width and height is {w, h}, and the touch point is {x, y}.Then the transformed coordinate point is {y/h, 1-x/w}. * * @param { Point } point - metering point * @throws { BusinessError } 7400103 - Session not config. @@ -6627,7 +6651,7 @@ declare namespace camera { setExposureBias(exposureBias: number): void; /** - * Query the exposure value. + * Query the current exposure value. * * @returns { number } The exposure value. * @throws { BusinessError } 7400103 - Session not config. @@ -6639,7 +6663,7 @@ declare namespace camera { getExposureValue(): number; /** - * Checks whether a specified focus mode is supported. + * Queries whether a specified focus mode is supported. * * @param { FocusMode } afMode - Focus mode. * @returns { boolean } Is the focus mode supported. @@ -7243,7 +7267,7 @@ declare namespace camera { * @since 11 */ /** - * Photo session object. + * The Normal Photo Mode session category provides operations for flash, exposure, focus, zoom, and color space. * @extends Session, Flash, AutoExposure, Focus, Zoom, ColorManagement, AutoDeviceSwitch * @interface PhotoSession * @syscap SystemCapability.Multimedia.Camera.Core @@ -9747,7 +9771,7 @@ declare namespace camera { */ interface SecureSession extends Session, Flash, AutoExposure, Focus, Zoom { /** - * Add Secure output for camera. + * Marks one of the PreviewOutputs as safe. * * @param { PreviewOutput } previewOutput - Specify the output as a secure flow. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. @@ -10554,6 +10578,7 @@ declare namespace camera { /** * Set a frame rate range. + * The supported frame rate range can be queried via the getSupportedFrameRates interface before setting. * * @param { number } minFps - Minimum frame rate per second. * @param { number } maxFps - Maximum frame rate per second. @@ -10577,7 +10602,8 @@ declare namespace camera { /** * Get active frame rate range which has been set before. - * + * Queryable after setting the frame rate for the preview stream using the setFrameRate interface. + * * @returns { FrameRateRange } The active frame rate range. * @syscap SystemCapability.Multimedia.Camera.Core * @since 12 @@ -11313,7 +11339,7 @@ declare namespace camera { */ enum VideoCodecType { /** - * Codec type AVC. + * Video encoding type AVC. * * @syscap SystemCapability.Multimedia.Camera.Core * @since 13 @@ -11328,7 +11354,7 @@ declare namespace camera { AVC = 0, /** - * Codec type HEVC. + * Video encoding type HEVC. * * @syscap SystemCapability.Multimedia.Camera.Core * @since 13 @@ -11719,7 +11745,7 @@ declare namespace camera { on(type: 'photoAssetAvailable', callback: AsyncCallback<photoAccessHelper.PhotoAsset>): void; /** - * Unsubscribes photo asset event callback. + * Log out of photoAsset reporting. * * @param { 'photoAssetAvailable' } type - Event type. * @param { AsyncCallback<photoAccessHelper.PhotoAsset> } callback - Callback used to get the asset. @@ -11790,7 +11816,7 @@ declare namespace camera { on(type: 'captureStart', callback: AsyncCallback<number>): void; /** - * Unsubscribes from capture start event callback. + * Logs off the listening for the start of the photo shoot. * * @param { 'captureStart' } type - Event type. * @param { AsyncCallback<number> } callback - Callback used to get the capture ID. @@ -11918,7 +11944,8 @@ declare namespace camera { /** * Subscribes capture end event callback. * - * @param { 'captureEnd' } type - Event type. + * @param { 'captureEnd' } type - Listen to the event, fixed to 'captureEnd', when photoOutput is created successfully. + * This event can be triggered when the photoOutput is created successfully. * @param { AsyncCallback<CaptureEndInfo> } callback - Callback used to get the capture end information. * @syscap SystemCapability.Multimedia.Camera.Core * @since 10 @@ -12917,7 +12944,7 @@ declare namespace camera { on(type: 'frameStart', callback: AsyncCallback<void>): void; /** - * Unsubscribes from frame start event callback. + * Logs off the preview frame startup listener. * * @param { 'frameStart' } type - Event type. * @param { AsyncCallback<void> } callback - Callback used to return the result. diff --git a/api/@ohos.multimedia.cameraPicker.d.ts b/api/@ohos.multimedia.cameraPicker.d.ts index 0aaf06ab634d729c45695e09af149d08f537c456..f60fabc36293c9d1de638586522212038ac4020c 100644 --- a/api/@ohos.multimedia.cameraPicker.d.ts +++ b/api/@ohos.multimedia.cameraPicker.d.ts @@ -224,12 +224,12 @@ declare namespace cameraPicker { * @since 11 */ /** - * Pick function to get a photo or video result. + * Launch the camera picker and configure it to photo or video mode base on the incoming media type. The photo or video result will be returned via a Promise upon completion of the operation. * * @param { Context } context - From UIExtensionAbility. * @param { Array<PickerMediaType> } mediaTypes - Pick media type. * @param { PickerProfile } pickerProfile - Picker input Profile. - * @returns { Promise<PickerResult> } pick result. + * @returns { Promise<PickerResult> } Get the result of the camera picker's processing using the Promise method. The return value is PickerResult. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice * @since 12 diff --git a/api/@ohos.window.d.ts b/api/@ohos.window.d.ts index 64697bf34d8b341a083aa6d1cb5f8229456e0a84..867cb99ee3971631eaff69cbe861f56fde9cac96 100644 --- a/api/@ohos.window.d.ts +++ b/api/@ohos.window.d.ts @@ -598,8 +598,8 @@ declare namespace window { * * @enum { number } * @syscap SystemCapability.Window.SessionManager - * @crossplatform * @atomicservice + * @crossplatform * @since 20 */ enum WindowStatusType { @@ -1580,7 +1580,7 @@ declare namespace window { * * @type { WindowStatusType } * @syscap SystemCapability.Window.SessionManager - * @crossplatform + * @crossPlatform * @since 20 */ windowStatusType: WindowStatusType; @@ -4710,6 +4710,16 @@ declare namespace window { * @atomicservice * @since 11 */ + /** + * Destroy the window. + * + * @param { AsyncCallback<void> } callback - Callback used to return the result. + * @throws { BusinessError } 1300002 - This window state is abnormal. + * @syscap SystemCapability.WindowManager.WindowManager.Core + * @crossplatform + * @atomicservice + * @since 11 + */ destroyWindow(callback: AsyncCallback<void>): void; /** @@ -8135,8 +8145,8 @@ declare namespace window { * 2. Incorrect parameter types. * @throws { BusinessError } 1300002 - This window state is abnormal. * @syscap SystemCapability.WindowManager.WindowManager.Core - * @crossplatform * @atomicservice + * @crossplatform * @since 20 */ setWindowPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): void; diff --git a/api/application/ApplicationContext.d.ts b/api/application/ApplicationContext.d.ts index e43a2c4eb47e1763e06fb637b6e70c9f61f5ef4b..802d51432a1cad275609ac1a7b2ec5d7e67949c0 100644 --- a/api/application/ApplicationContext.d.ts +++ b/api/application/ApplicationContext.d.ts @@ -45,6 +45,8 @@ import Want from '../@ohos.app.ability.Want'; * @since 10 */ /** + * The ApplicationContext module, inherited from Context, provides application-level context capabilities, including + * APIs for registering and unregistering the lifecycle of application components. * The ApplicationContext module, inherited from Context, provides application-level context capabilities, including * APIs for registering and unregistering the lifecycle of application components. * @@ -716,7 +718,7 @@ export default class ApplicationContext extends Context { * <br>This API can be called only by the main thread. * </P> * - * @param { string } font - Font, which can be registered by calling UIContext.registerFont. + * @param { string } font - Font, which can be registered by calling {@link font.registerFont}. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. * @throws { BusinessError } 16000011 - The context does not exist. @@ -732,7 +734,7 @@ export default class ApplicationContext extends Context { * * @returns { number } Index of the current application clone. * @throws { BusinessError } 16000011 - The context does not exist. - * @throws { BusinessError } 16000071 - App clone is not supported. + * @throws { BusinessError } 16000071 - The MultiAppMode is not APP_CLONE. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @atomicservice diff --git a/api/application/Context.d.ts b/api/application/Context.d.ts index b6a716927e1eac893e677dc2367a56e0ba45b223..05e47e288bfa1ac50429821f0d1c8c606b2435f0 100644 --- a/api/application/Context.d.ts +++ b/api/application/Context.d.ts @@ -47,7 +47,7 @@ import contextConstant from '../@ohos.app.ability.contextConstant'; */ /** * The Context module, inherited frome {@link BaseContext}, provides context for abilities or applications, including - * access to application-specific resources. + * accessto application-specific resources. * * @extends BaseContext * @syscap SystemCapability.Ability.AbilityRuntime.Core @@ -489,14 +489,16 @@ export default class Context extends BaseContext { createModuleContext(bundleName: string, moduleName: string): Context; /** - * This API allows OEM manufacturers to set up their own ResourceManager in the pre-installed system HSP. + * Creates a resource manager object for a module of the system-level HSP. * * @param { string } bundleName - Bundle name. * @param { string } moduleName - Module name. + * @param { string } bundleName - Bundle name. + * @param { string } moduleName - Module name. * @returns { resmgr.ResourceManager } Returns the system HSP module resource manager. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. * 2.Incorrect parameter types. - * @throws { BusinessError } 16400001 - The input bundleName is not a system HSP. + * @throws { BusinessError } 16400001 - If the input bundleName is not system hsp. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @systemapi * @stagemodelonly @@ -527,6 +529,8 @@ export default class Context extends BaseContext { * Obtains the context of this application. * * @returns { ApplicationContext } Application context obtained. + * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. + * 2.Incorrect parameter types. * @syscap SystemCapability.Ability.AbilityRuntime.Core * @stagemodelonly * @crossplatform diff --git a/kits/@kit.ArkGraphics3D.d.ts b/kits/@kit.ArkGraphics3D.d.ts index 5d9966069ecf2f110c3502d47fa88f0effa42446..af80e54e8dfc6693e9cfd7d4e1bfd8f13ffe980c 100644 --- a/kits/@kit.ArkGraphics3D.d.ts +++ b/kits/@kit.ArkGraphics3D.d.ts @@ -25,7 +25,7 @@ import { ToneMappingType, ToneMappingSettings, PostProcessSettings, BloomSetting SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image, MeshResource, LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera, SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene, RenderParameters, - RaycastResult, RaycastParameters, CullMode, Blend, RenderSort, MaterialProperty, MetallicRoughnessMaterial, + RaycastResult, RaycastParameters, CullMode, Blend, RenderSort, MaterialProperty, MetalicRoughnessMaterial, Morpher, Sampler, SamplerFilter, SamplerAddressMode, RenderResourceFactory, SceneComponent, RenderContext } from '@ohos.graphics.scene'; export { ToneMappingType, ToneMappingSettings, PostProcessSettings, BloomSettings, @@ -35,5 +35,5 @@ export { ToneMappingType, ToneMappingSettings, PostProcessSettings, BloomSetting SubMesh, Mesh, Animation, EnvironmentBackgroundType, Environment, Image, MeshResource, LayerMask, NodeType, Container, Node, Geometry, LightType, Light, SpotLight, DirectionalLight, Camera, SceneResourceParameters, SceneNodeParameters, SceneResourceFactory, Scene, RenderParameters, - RaycastResult, RaycastParameters, CullMode, Blend, RenderSort, MaterialProperty, MetallicRoughnessMaterial, + RaycastResult, RaycastParameters, CullMode, Blend, RenderSort, MaterialProperty, MetalicRoughnessMaterial, Morpher, Sampler, SamplerFilter, SamplerAddressMode, RenderResourceFactory, SceneComponent, RenderContext };