diff --git a/api/@internal/component/ets/pattern_lock.d.ts b/api/@internal/component/ets/pattern_lock.d.ts index efc54d9d3befb2e7870797a861f381b60c217b2a..42f74a112a0257c713544207f8d511e41e328427 100644 --- a/api/@internal/component/ets/pattern_lock.d.ts +++ b/api/@internal/component/ets/pattern_lock.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ /** * Provides methods for control pattern lock component. - * @since 8 + * @since 9 */ declare class PatternLockController { /** @@ -31,76 +31,76 @@ declare class PatternLockController { /** * Provides an interface for generating PatternLock. - * @since 8 + * @since 9 */ interface PatternLockInterface { (controller?: PatternLockController): PatternLockAttribute; } /** - * @since 8 + * @since 9 */ declare class PatternLockAttribute extends CommonMethod { /** * The square side length of pattern lock component. - * @since 8 + * @since 9 */ sideLength(value: Length): PatternLockAttribute; /** * Circle radius. - * @since 8 + * @since 9 */ circleRadius(value: Length): PatternLockAttribute; /** * The background color. - * @since 8 + * @since 9 */ backgroundColor(value: ResourceColor): PatternLockAttribute; /** * Regular color. - * @since 8 + * @since 9 */ regularColor(value: ResourceColor): PatternLockAttribute; /** * The color when cell is selected. - * @since 8 + * @since 9 */ selectedColor(value: ResourceColor): PatternLockAttribute; /** * The color when cell is active state. - * @since 8 + * @since 9 */ activeColor(value: ResourceColor): PatternLockAttribute; /** * The path line color. - * @since 8 + * @since 9 */ pathColor(value: ResourceColor): PatternLockAttribute; /** * The path line stroke width. - * @since 8 + * @since 9 */ pathStrokeWidth(value: number | string): PatternLockAttribute; /** * Called when the pattern input completed. - * @since 8 + * @since 9 */ onPatternComplete(callback: (input: Array) => void): PatternLockAttribute; /** * Called when judging whether the input state can be reset by touch pattern lock. - * @since 8 + * @since 9 */ autoReset(value: boolean): PatternLockAttribute; } declare const PatternLock: PatternLockInterface; -declare const PatternLockInstance: PatternLockAttribute; \ No newline at end of file +declare const PatternLockInstance: PatternLockAttribute; diff --git a/api/@internal/component/ets/plugin_component.d.ts b/api/@internal/component/ets/plugin_component.d.ts index 47300deaa7180ff98c64873b247e881d45a013a2..08ddae847e61272cd9d92d6692229872ed6711ef 100644 --- a/api/@internal/component/ets/plugin_component.d.ts +++ b/api/@internal/component/ets/plugin_component.d.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,53 +15,55 @@ /** * PluginComponentTemplate - * @since 8 + * @since 9 + * @systemapi */ interface PluginComponentTemplate { /** * Defines the plugin source name. - * @since 8 + * @since 9 + * @systemapi */ source: string; /** * Defines the ability name. - * @since 8 + * @since 9 + * @systemapi */ ability: string; } /** * Provides plugin component. - * @since 8 + * @since 9 + * @systemapi */ interface PluginComponentInterface { /** * Called when setting the plugin. - * @since 8 + * @since 9 + * @systemapi */ (value: { template: PluginComponentTemplate; data: any }): PluginComponentAttribute; } /** * Defines the plugin component attibute functions. - * @since 8 + * @since 9 + * @systemapi */ declare class PluginComponentAttribute extends CommonMethod { - /** - * Set pluginComponent size, - * @since 8 - */ - size(value: { width: number; height: number }): PluginComponentAttribute; - /** * pluginComponent onComplete callback, - * @since 8 + * @since 9 + * @systemapi */ onComplete(callback: () => void): PluginComponentAttribute; /** * pluginComponent onError callback, - * @since 8 + * @since 9 + * @systemapi */ onError(callback: (info: { errcode: number; msg: string }) => void): PluginComponentAttribute; }