/* * Copyright (c) 2021-2023 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Defines the options of Component ClassDecorator. * * @interface ComponentOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ declare interface ComponentOptions { /** * freeze UI state. * * @type { boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ freezeWhenInactive : boolean, } /** * Define the ratio of characters entered by the the percentage of InputCounterOptions. * * @interface InputCounterOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface InputCounterOptions { /** * It is the numerator bit of the percentage and used as a threshold. If the number of characters input * reaches the maximum number of characters multiplied by this threshold, the counter is displayed. * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ thresholdPercentage?: number; /** * If the current input character count reaches the maximum character count and users want to exceed the * normal input, the border will turn red. If this parameter is true, the red border displayed. * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ highlightBorder?: boolean; } /** * Defining Component ClassDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Component ClassDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Component ClassDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Component ClassDecorator * * Component is a ClassDecorator and it supports ComponentOptions as parameters. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Component: ClassDecorator & ((options: ComponentOptions) => ClassDecorator); /** * Defines the options of Entry ClassDecorator. * * @interface EntryOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 * @form */ /** * Defines the options of Entry ClassDecorator. * * @interface EntryOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ declare interface EntryOptions { /** * Named route name. * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 * @form */ /** * Named route name. * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ routeName? : string, /** * LocalStorage to be passed. * * @type { ?LocalStorage } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 * @form */ /** * LocalStorage to be passed. * * @type { ?LocalStorage } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ storage? : LocalStorage, } /** * Defines Entry ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Entry ClassDecorator. * * Entry is a ClassDecorator and it supports LocalStorage as parameters. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines Entry ClassDecorator. * * Entry is a ClassDecorator and it supports LocalStorage or EntryOptions as parameters. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines Entry ClassDecorator. * * Entry is a ClassDecorator and it supports LocalStorage or EntryOptions as parameters. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Entry: ClassDecorator & ((options?: LocalStorage | EntryOptions) => ClassDecorator); /** * Defining Observed ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Observed ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Observed ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Observed ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Observed: ClassDecorator; /** * Defining Preview ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Preview ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Preview ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Preview ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Preview: ClassDecorator & ((value: PreviewParams) => ClassDecorator); /** * Defining Require PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Require: PropertyDecorator; /** * Defining BuilderParam PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining BuilderParam PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining BuilderParam PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining BuilderParam PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const BuilderParam: PropertyDecorator; /** * Defining State PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining State PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining State PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining State PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const State: PropertyDecorator; /** * Defining Track PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ declare const Track: PropertyDecorator; /** * Defining Prop PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Prop PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Prop PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Prop PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Prop: PropertyDecorator; /** * Defining Link PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Link PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Link PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Link PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Link: PropertyDecorator; /** * Defining ObjectLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining ObjectLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining ObjectLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining ObjectLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const ObjectLink: PropertyDecorator; /** * Defines the options of Provide PropertyDecorator. * * @interface ProvideOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface ProvideOptions { /** * Override the @Provide of any parent or parent of parent @Component.@Provide({allowOverride: "name"}) is * also allowed to be used even when there is no ancestor @Component whose @Provide would be overridden. * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ allowOverride?: string, } /** * Defining Provide PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Provide PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Provide PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Provide PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Provide: PropertyDecorator & ((value: string | ProvideOptions) => PropertyDecorator); /** * Defining Consume PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Consume PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Consume PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Consume PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Consume: PropertyDecorator & ((value: string) => PropertyDecorator); /** * Defining StorageProp PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining StorageProp PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defining StorageProp PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const StorageProp: (value: string) => PropertyDecorator; /** * Defining StorageLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining StorageLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defining StorageLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const StorageLink: (value: string) => PropertyDecorator; /** * Defining Watch PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Watch PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Watch PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Watch PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Watch: (value: string) => PropertyDecorator; /** * Defining Builder MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Builder MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Builder MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Builder MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Builder: MethodDecorator; /** * Defining Styles MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defining Styles MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Styles MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Styles MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Styles: MethodDecorator; /** * Defining Extend MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining Extend MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining Extend MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining Extend MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Extend: MethodDecorator & ((value: any) => MethodDecorator); /** * Define AnimatableExtend MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define AnimatableExtend MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const AnimatableExtend: MethodDecorator & ((value: Object) => MethodDecorator); /** * Define AnimatableArithmetic interface * * @interface AnimatableArithmetic * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define AnimatableArithmetic interface * * @interface AnimatableArithmetic * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface AnimatableArithmetic { /** * Define plus method * * @param { AnimatableArithmetic } rhs - another value * @returns { AnimatableArithmetic } new value which implements AnimatableArithmetic interface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define plus method * * @param { AnimatableArithmetic } rhs - another value * @returns { AnimatableArithmetic } new value which implements AnimatableArithmetic interface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ plus(rhs: AnimatableArithmetic): AnimatableArithmetic; /** * Define subtract method * * @param { AnimatableArithmetic } rhs - another value * @returns { AnimatableArithmetic } new value which implements AnimatableArithmetic interface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define subtract method * * @param { AnimatableArithmetic } rhs - another value * @returns { AnimatableArithmetic } new value which implements AnimatableArithmetic interface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ subtract(rhs: AnimatableArithmetic): AnimatableArithmetic; /** * Define multiply method * * @param { number } scale - scale value * @returns { AnimatableArithmetic } new value which implements AnimatableArithmetic interface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define multiply method * * @param { number } scale - scale value * @returns { AnimatableArithmetic } new value which implements AnimatableArithmetic interface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ multiply(scale: number): AnimatableArithmetic; /** * Define equals method * * @param { AnimatableArithmetic } rhs - another value * @returns { boolean } is equals * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define equals method * * @param { AnimatableArithmetic } rhs - another value * @returns { boolean } is equals * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ equals(rhs: AnimatableArithmetic): boolean; } /** * Defining Concurrent MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Defining Concurrent MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defining Concurrent MethodDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const Concurrent: MethodDecorator; /** * Defining Sendable ClassDecorator * The Sendable decorator can be used only for classes. A class with this decorator is marked as sendable, and the class object can be shared globally. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const Sendable: ClassDecorator; /** * Defining CustomDialog ClassDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining CustomDialog ClassDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defining CustomDialog ClassDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const CustomDialog: ClassDecorator; /** * Defining LocalStorageLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Defining LocalStorageLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defining LocalStorageLink PropertyDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const LocalStorageLink: (value: string) => PropertyDecorator; /** * Defining LocalStorageProp PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining LocalStorageProp PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining LocalStorageProp PropertyDecorator * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const LocalStorageProp: (value: string) => PropertyDecorator; /** * Obtains the Context object associated with a component on the page. * * @param { Object } component - indicate the component on the page. * @returns { Context } * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @since 9 */ /** * Obtains the Context object associated with a component on the page. * * @param { Object } component - indicate the component on the page. * @returns { Context } * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform * @since 10 */ /** * Obtains the Context object associated with a component on the page. * * @param { Object } component - indicate the component on the page. * @returns { Context } * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform * @atomicservice * @since 11 */ declare function getContext(component?: Object): Context; /** * Defining Reusable ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defining Reusable ClassDecorator. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare const Reusable: ClassDecorator; /** * Get context. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @since 9 */ /** * Get context. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform * @since 10 */ /** * Get context. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform * @atomicservice * @since 11 */ declare type Context = import('../api/application/Context').default; /** * Post Card Action. * * @param { Object } component - indicate the card entry component. * @param { Object } action - indicate the router, message or call event. * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @since 9 * @form */ /** * Post Card Action. * * @param { Object } component - indicate the card entry component. * @param { Object } action - indicate the router, message or call event. * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform * @since 10 * @form */ /** * Post Card Action. * * @param { Object } component - indicate the card entry component. * @param { Object } action - indicate the router, message or call event. * @syscap SystemCapability.ArkUI.ArkUI.Full * @StageModelOnly * @crossplatform * @atomicservice * @since 11 * @form */ declare function postCardAction(component: Object, action: Object): void; /** * Defines the data type of the interface restriction. * * @interface Configuration * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the data type of the interface restriction. * * @interface Configuration * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the data type of the interface restriction. * * @interface Configuration * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the data type of the interface restriction. * * @interface Configuration * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface Configuration { /** * Set colorMode. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set colorMode. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Set colorMode. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Set colorMode. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ readonly colorMode: string; /** * Set fontScale. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set fontScale. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Set fontScale. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Set fontScale. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ readonly fontScale: number; } /** * Defines the data type of the interface restriction. * * @interface Rectangle * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the data type of the interface restriction. * * @interface Rectangle * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the data type of the interface restriction. * * @interface Rectangle * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the data type of the interface restriction. * * @interface Rectangle * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface Rectangle { /** * x:Horizontal coordinate * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * x:Horizontal coordinate * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * x:Horizontal coordinate * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * x:Horizontal coordinate * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ x?: Length; /** * y:Vertical axis coordinate. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * y:Vertical axis coordinate. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * y:Vertical axis coordinate. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * y:Vertical axis coordinate. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ y?: Length; /** * Sets the width of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the width of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the width of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the width of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ width?: Length; /** * Sets the height of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the height of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the height of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the height of the current touchRect. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ height?: Length; } /** * Interface for ExpectedFrameRateRange. * * @interface ExpectedFrameRateRange * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ declare interface ExpectedFrameRateRange { /** * The minimum animation drawing FPS. * The minimum value should be less than or equal to the maximum value. * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ min: number, /** * The maximum animation drawing FPS. * The maximum value should be greater than or equal to the minimum value. * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ max: number, /** * The expected frame rate of dynamical callback rate range. * The value should be between the minimum and maximum value. * Otherwise, the actual callback rate will be dynamically * adjusted to better align with other animation sources. * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ expected: number, } /** * global $r function * * @param { string } value * @param { any[] } params * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * global $r function * * @param { string } value * @param { any[] } params * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * global $r function * * @param { string } value * @param { any[] } params * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * global $r function * * @param { string } value * @param { any[] } params * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function $r(value: string, ...params: any[]): Resource; /** * global $rawfile function * * @param { string } value * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * global $rawfile function * * @param { string } value * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * global $rawfile function * * @param { string } value * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * global $rawfile function * * @param { string } value * @returns { Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function $rawfile(value: string): Resource; /** * Enum for FinishCallbackType. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ declare enum FinishCallbackType { /** * When the entire animation ends and will be removed immediately, the callback is triggered. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ REMOVED = 0, /** * When the animation is logically down but may still be in its long tail, the callback is triggered. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ LOGICALLY = 1, } /** * Defines the touch test strategy object. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ declare enum TouchTestStrategy { /** * Do framework touch test. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ DEFAULT = 0, /** * Specify the component to do touch test and follow the framework touch test * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ FORWARD_COMPETITION = 1, /** * Specify the component to do touch test and not follow the framework touch test * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ FORWARD = 2 } /** * Defines the animate function params. * * @interface AnimateParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the animate function params. * * @interface AnimateParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the animate function params. * * @interface AnimateParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the animate function params. * * @interface AnimateParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface AnimateParam { /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ duration?: number; /** * Animation playback speed. A larger value indicates faster animation playback, and a smaller value indicates slower * animation playback. The value 0 means that there is no animation. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation playback speed. A larger value indicates faster animation playback, and a smaller value indicates slower * animation playback. The value 0 means that there is no animation. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Animation playback speed. A larger value indicates faster animation playback, and a smaller value indicates slower * animation playback. The value 0 means that there is no animation. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ tempo?: number; /** * Animation curve. * * @type { ?(Curve | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation curve. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Animation curve. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Animation curve. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ curve?: Curve | string | ICurve; /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation delay time, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Animation delay time, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ delay?: number; /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation iterations. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Animation iterations. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ iterations?: number; /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?PlayMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?PlayMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?PlayMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?PlayMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ playMode?: PlayMode; /** * Callback invoked when the animation playback is complete. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Callback invoked when the animation playback is complete. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Callback invoked when the animation playback is complete. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Callback invoked when the animation playback is complete. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ onFinish?: () => void; /** * Define the type of onFinish callback in animation. * * @type { ?FinishCallbackType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ finishCallbackType?: FinishCallbackType; /** * Indicates expectedFrameRateRange including minimum、maximum and expected frame rate. * * @type { ?ExpectedFrameRateRange } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ expectedFrameRateRange?: ExpectedFrameRateRange; } /** * Interface for curve object. * * @interface ICurve * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Interface for curve object. * * @interface ICurve * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Interface for curve object. * * @interface ICurve * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ interface ICurve { /** * Get curve value by fraction. * * @param { number } fraction * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Get curve value by fraction. * * @param { number } fraction * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Get curve value by fraction. * * @param { number } fraction * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ interpolate(fraction: number): number; } /** * Defines the motion path options. * * @interface MotionPathOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the motion path options. * * @interface MotionPathOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the motion path options. * * @interface MotionPathOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface MotionPathOptions { /** * The path info. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The path info. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The path info. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ path: string; /** * The origin point info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The origin point info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The origin point info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ from?: number; /** * The distance point info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The distance point info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The distance point info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ to?: number; /** * The rotate info. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The rotate info. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The rotate info. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ rotatable?: boolean; } /** * Defines the shard transition function params. * * @interface sharedTransitionOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the shard transition function params. * * @interface sharedTransitionOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the shard transition function params. * * @interface sharedTransitionOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface sharedTransitionOptions { /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Animation duration, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ duration?: number; /** * Animation duration, in ms. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation curve. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Animation curve. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ curve?: Curve | string | ICurve; /** * Animation playback mode. By default, the animation is played from the beginning after the playback is complete. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Animation delay time, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Animation delay time, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ delay?: number; /** * The motion path info. * * @type { ?MotionPathOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The motion path info. * * @type { ?MotionPathOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The motion path info. * * @type { ?MotionPathOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ motionPath?: MotionPathOptions; /** * Z index info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Z index info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Z index info. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ zIndex?: number; /** * the animate type. * * @type { ?SharedTransitionEffectType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * the animate type. * * @type { ?SharedTransitionEffectType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * the animate type. * * @type { ?SharedTransitionEffectType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ type?: SharedTransitionEffectType; } /** * Defines the options of geometry transition. * * @interface GeometryTransitionOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface GeometryTransitionOptions { /** * whether follow target for the component still in the hierarchy, default: false, stay current. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ follow?: boolean; } /** * Defines the options of translate. * * @interface TranslateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the options of translate. * * @interface TranslateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the options of translate. * * @interface TranslateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the options of translate. * * @interface TranslateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface TranslateOptions { /** * The param of x direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of x direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of x direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of x direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ x?: number | string; /** * The param of y direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of y direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of y direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of y direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ y?: number | string; /** * The param of z direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of z direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of z direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of z direction. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ z?: number | string; } /** * Defines the options of scale. * * @interface ScaleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the options of scale. * * @interface ScaleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the options of scale. * * @interface ScaleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the options of scale. * * @interface ScaleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface ScaleOptions { /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ x?: number; /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ y?: number; /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ z?: number; /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ centerX?: number | string; /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ centerY?: number | string; } /** * Defines the align rule options of relative container. * * @interface AlignRuleOption * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the align rule options of relative container. * * @interface AlignRuleOption * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the align rule options of relative container. * * @interface AlignRuleOption * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface AlignRuleOption { /** * The param of left align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of left align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of left align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ left?: { anchor: string, align: HorizontalAlign }; /** * The param of right align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of right align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of right align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ right?: { anchor: string, align: HorizontalAlign }; /** * The param of middle align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of middle align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of middle align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ middle?: { anchor: string, align: HorizontalAlign }; /** * The param of top align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of top align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of top align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ top?: { anchor: string, align: VerticalAlign }; /** * The param of bottom align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of bottom align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 * @form */ /** * The param of bottom align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ bottom?: { anchor: string, align: VerticalAlign }; /** * The param of center align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of center align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of center align. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ center?: { anchor: string, align: VerticalAlign }; /** * Defines the bias ratio in horizontal and vertical direction. * * @type { ?Bias } * @default {horizontal:0.5,vertical:0.5} * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ bias?: Bias; } /** * The param of rotate. * * @interface RotateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of rotate. * * @interface RotateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of rotate. * * @interface RotateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of rotate. * * @interface RotateOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface RotateOptions { /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of x direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ x?: number; /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of y direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ y?: number; /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of z direction. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ z?: number; /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of center point of x. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ centerX?: number | string; /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of center point of y. * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ centerY?: number | string; /** * The param of center point of z. * * @type { ?number } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of center point of z. * * @type { ?number } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ centerZ?: number; /** * The param of camera distance, value range (-∞, ∞). * @type { ?number } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of camera distance, value range (-∞, ∞). * @type { ?number } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ perspective?: number; /** * The param of angle. * * @type { number | string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The param of angle. * * @type { number | string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The param of angle. * * @type { number | string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The param of angle. * * @type { number | string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ angle: number | string; } /** * Defines the param of transition. * * @interface TransitionOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead TransitionEffect */ declare interface TransitionOptions { /** * Defines the param of type. * * @type { ?TransitionType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 */ type?: TransitionType; /** * Defines the param of opacity. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 */ opacity?: number; /** * Defines the param of translate. * * @type { ?TranslateOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 */ translate?: TranslateOptions; /** * Defines the param of scale. * * @type { ?ScaleOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 */ scale?: ScaleOptions; /** * Defines the param of rotate. * * @type { ?RotateOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 */ rotate?: RotateOptions; } /** * Defines the Edge object. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the Edge object. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare enum TransitionEdge { /** * Top edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Top edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ TOP, /** * Bottom edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Bottom edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ BOTTOM, /** * Start edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Start edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ START, /** * End edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * End edge * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ END } /** * Defines all transition effects. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines all transition effects. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare type TransitionEffects = { identity: undefined; opacity: number; slideSwitch: undefined; move: TransitionEdge; translate: TranslateOptions; rotate: RotateOptions; scale: ScaleOptions; asymmetric: { appear: TransitionEffect; disappear: TransitionEffect; }; }; /** * Defines the transition effect * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the transition effect * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare class TransitionEffect< Type extends keyof TransitionEffects = keyof TransitionEffects, Effect extends TransitionEffects[Type] = TransitionEffects[Type] > { /** * Defines an identity transition effect * * @type { TransitionEffect<"identity"> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines an identity transition effect * * @type { TransitionEffect<"identity"> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static readonly IDENTITY: TransitionEffect<"identity">; /** * Defines an opacity transition effect * * @type { TransitionEffect<"opacity"> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines an opacity transition effect * * @type { TransitionEffect<"opacity"> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static readonly OPACITY: TransitionEffect<"opacity">; /** * Defines a slide transition effect * * @type { TransitionEffect< * "asymmetric", * {appear: TransitionEffect<"move", TransitionEdge>; * disappear: TransitionEffect<"move", TransitionEdge>; * }> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines a slide transition effect * * @type { TransitionEffect< * "asymmetric", * {appear: TransitionEffect<"move", TransitionEdge>; * disappear: TransitionEffect<"move", TransitionEdge>; * }> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static readonly SLIDE: TransitionEffect< "asymmetric", { appear: TransitionEffect<"move", TransitionEdge>; disappear: TransitionEffect<"move", TransitionEdge>; } >; /** * Defines a slide & switch transition effect * * @type { TransitionEffect<"slideSwitch"> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines a slide & switch transition effect * * @type { TransitionEffect<"slideSwitch"> } * @readonly * @static * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static readonly SLIDE_SWITCH: TransitionEffect<"slideSwitch">; /** * Creates a translate transition effect * * @param { TranslateOptions } options - translate options * @returns { TransitionEffect<"translate"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Creates a translate transition effect * * @param { TranslateOptions } options - translate options * @returns { TransitionEffect<"translate"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static translate(options: TranslateOptions): TransitionEffect<"translate">; /** * Creates a rotation transition effect * * @param { RotateOptions } options - rotate options * @returns { TransitionEffect<"rotate"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Creates a rotation transition effect * * @param { RotateOptions } options - rotate options * @returns { TransitionEffect<"rotate"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static rotate(options: RotateOptions): TransitionEffect<"rotate">; /** * Creates a scale transition effect * * @param { ScaleOptions } options - scale options * @returns { TransitionEffect<"scale"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Creates a scale transition effect * * @param { ScaleOptions } options - scale options * @returns { TransitionEffect<"scale"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static scale(options: ScaleOptions): TransitionEffect<"scale">; /** * Creates an opacity transition effect with alpha value * * @param { number } alpha - opacity alpha value * @returns { TransitionEffect<"opacity"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Creates an opacity transition effect with alpha value * * @param { number } alpha - opacity alpha value * @returns { TransitionEffect<"opacity"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static opacity(alpha: number): TransitionEffect<"opacity">; /** * Creates a move transition effect * * @param { TransitionEdge } edge - the edge that component will move to * @returns { TransitionEffect<"move"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Creates a move transition effect * * @param { TransitionEdge } edge - the edge that component will move to * @returns { TransitionEffect<"move"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static move(edge: TransitionEdge): TransitionEffect<"move">; /** * Creates an asymmetric transition effect * * @param { TransitionEffect } appear - the transition which will be attached when the component is appear * @param { TransitionEffect } disappear - the transition which will be attached when the component is disappear * @returns { TransitionEffect<"asymmetric"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Creates an asymmetric transition effect * * @param { TransitionEffect } appear - the transition which will be attached when the component is appear * @param { TransitionEffect } disappear - the transition which will be attached when the component is disappear * @returns { TransitionEffect<"asymmetric"> } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ static asymmetric( appear: TransitionEffect, disappear: TransitionEffect ): TransitionEffect<"asymmetric">; /** * TransitionEffect constructor * * @param { Type } type - transition type * @param { Effect } effect - transition options * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * TransitionEffect constructor * * @param { Type } type - transition type * @param { Effect } effect - transition options * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ constructor(type: Type, effect: Effect); /** * Set the animation of current transition effect * * @param { AnimateParam } value - animation parameters * @returns { TransitionEffect } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Set the animation of current transition effect * * @param { AnimateParam } value - animation parameters * @returns { TransitionEffect } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ animation(value: AnimateParam): TransitionEffect; /** * Combines another transition effect * * @param { TransitionEffect } transitionEffect - transition effect which is be combined * @returns { TransitionEffect } combined transition effect * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Combines another transition effect * * @param { TransitionEffect } transitionEffect - transition effect which is be combined * @returns { TransitionEffect } combined transition effect * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ combine(transitionEffect: TransitionEffect): TransitionEffect; } /** * Define Preview property * * @interface PreviewParams * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview property * * @interface PreviewParams * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ interface PreviewParams { /** * Define Preview title * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview title * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ title?: string; /** * Define Preview width * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview width * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ width?: number; /** * Define Preview height * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview height * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ height?: number; /** * Define Preview locale * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview locale * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ locale?: string; /** * Define Preview colorMode * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview colorMode * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ colorMode?: string; /** * Define Preview deviceType * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview deviceType * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ deviceType?: string; /** * Define Preview dpi * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview dpi * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ dpi?: number; /** * Define Preview orientation * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview orientation * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ orientation?: string; /** * Define Preview roundScreen * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define Preview roundScreen * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 * @form */ roundScreen?: boolean; } /** * ItemDragInfo object description * * @interface ItemDragInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * ItemDragInfo object description * * @interface ItemDragInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * ItemDragInfo object description * * @interface ItemDragInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface ItemDragInfo { /** * Obtains the X coordinate of the drag window, in vp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Obtains the X coordinate of the drag window, in vp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Obtains the X coordinate of the drag window, in vp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ x: number; /** * Obtains the Y coordinate of the drag window, in vp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Obtains the Y coordinate of the drag window, in vp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Obtains the Y coordinate of the drag window, in vp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ y: number; } /** * DragItemInfo object description * * @interface DragItemInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * DragItemInfo object description * * @interface DragItemInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare interface DragItemInfo { /** * Uses the pixelMap object for drawing. * * @type { ?PixelMap } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Uses the pixelMap object for drawing. * * @type { ?PixelMap } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ pixelMap?: PixelMap; /** * Uses the custom builder for drawing, if pixelMap is set, this value is ignored. * * @type { ?CustomBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Uses the custom builder for drawing, if pixelMap is set, this value is ignored. * * @type { ?CustomBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ builder?: CustomBuilder; /** * Sets the extra info for drag event. * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the extra info for drag event. * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ extraInfo?: string; } /** * Defining animation function. * * @param { AnimateParam } value * @param { function } event * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defining animation function. * * @param { AnimateParam } value * @param { function } event * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defining animation function. * * @param { AnimateParam } value * @param { function } event * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defining animation function. * * @param { AnimateParam } value * @param { function } event * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function animateTo(value: AnimateParam, event: () => void): void; /** * Define animation functions for immediate distribution. * * @param { AnimateParam } value - Set animation effect parameters. * @param { function } event - Specify the closure function that displays dynamic effects, * and the system will automatically insert transition animations for state changes caused by the closure function. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ declare function animateToImmediately(value: AnimateParam, event: () => void): void; /** * Converts a value in vp units to a value in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts a value in vp units to a value in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts a value in vp units to a value in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts a value in vp units to a value in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function vp2px(value: number): number; /** * Converts a number in units of px to a number in units of vp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts a number in units of px to a number in units of vp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts a number in units of px to a number in units of vp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts a number in units of px to a number in units of vp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function px2vp(value: number): number; /** * Converts a number in fp units to a number in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts a number in fp units to a number in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts a number in fp units to a number in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts a number in fp units to a number in px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function fp2px(value: number): number; /** * Converts a number in units of px to a number in units of fp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts a number in units of px to a number in units of fp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts a number in units of px to a number in units of fp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts a number in units of px to a number in units of fp. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function px2fp(value: number): number; /** * Converts a number in units of lpx to a number in units of px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts a number in units of lpx to a number in units of px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts a number in units of lpx to a number in units of px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts a number in units of lpx to a number in units of px. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function lpx2px(value: number): number; /** * Converts a number in units of px to a number in units of lpx. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts a number in units of px to a number in units of lpx. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts a number in units of px to a number in units of lpx. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts a number in units of px to a number in units of lpx. * * @param { number } value * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare function px2lpx(value: number): number; /** * Defines the namespace of focus controller. * * @namespace focusControl * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 9 * @form */ /** * Defines the namespace of focus controller. * * @namespace focusControl * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare namespace focusControl { /** * Request focus to the specific component by param: 'id/key'. * * @param { string } value * @returns { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Request focus to the specific component by param: 'id/key'. * * @param { string } value * @returns { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Request focus to the specific component by param: 'id/key'. * * @param { string } value * @returns { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ function requestFocus(value: string): boolean; } /** * Import the PointerStyle type object for setCursor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ declare type PointerStyle = import('../api/@ohos.multimodalInput.pointer').default.PointerStyle; /** * CursorControl * * @namespace cursorControl * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ declare namespace cursorControl { /** * Change the mouse cursor style by param: 'PointerStyle'. * * @param { PointerStyle } value * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ function setCursor(value: PointerStyle): void; /** * Restore the default mouse cursor style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ function restoreDefault(): void; } /** * Defines the event target. * * @interface EventTarget * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the event target. * * @interface EventTarget * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the event target. * * @interface EventTarget * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the event target. * * @interface EventTarget * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface EventTarget { /** * Area of current target. * * @type { Area } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Area of current target. * * @type { Area } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Area of current target. * * @type { Area } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Area of current target. * * @type { Area } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ area: Area; } /** * Defines the event source type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the event source type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the event source type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum SourceType { /** * Unknown type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Unknown type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Unknown type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ Unknown, /** * The mouse type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * The mouse type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The mouse type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ Mouse, /** * The touch screen type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * The touch screen type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The touch screen type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ TouchScreen, } /** * Defines the event tool type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Defines the event tool type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the event tool type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum SourceTool { /** * Unknown type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Unknown type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Unknown type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ Unknown, /** * The finger type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * The finger type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The finger type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ Finger, /** * The pen type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * The pen type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The pen type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ Pen, } /** * Defines the Border Image Repeat Mode. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the Border Image Repeat Mode. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the Border Image Repeat Mode. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare enum RepeatMode { /** * Repeat mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Repeat mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Repeat mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Repeat, /** * Stretch mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Stretch mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Stretch mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Stretch, /** * Round mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Round mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Round mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Round, /** * Space mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Space mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Space mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Space, } /** * enum Blur style * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * enum Blur style * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * enum Blur style * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare enum BlurStyle { /** * Defines the thin card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the thin card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the thin card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Thin, /** * Defines the regular card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the regular card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the regular card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Regular, /** * Defines the thick card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the thick card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the thick card material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ Thick, /** * Defines the thin background material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the thin background material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ BACKGROUND_THIN, /** * Defines the thin regular material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the thin regular material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ BACKGROUND_REGULAR, /** * Defines the thin thick material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the thin thick material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ BACKGROUND_THICK, /** * Defines the thin ultra thick material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the thin ultra thick material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ BACKGROUND_ULTRA_THICK, /** * Defines none material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines none material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ NONE, /** * Defines the ultra thin component material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ COMPONENT_ULTRA_THIN = 8, /** * Defines the thin component material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ COMPONENT_THIN = 9, /** * Defines the regular component material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ COMPONENT_REGULAR = 10, /** * Defines the thick component material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ COMPONENT_THICK = 11, /** * Defines the ultra thick component material. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ COMPONENT_ULTRA_THICK = 12, } /** * enum color mode * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * enum color mode * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum ThemeColorMode { /** * Defines the mode which is follow up with system. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the mode which is follow up with system. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ SYSTEM, /** * Defines the light mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the light mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ LIGHT, /** * Defines the dark mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the dark mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ DARK, } /** * Defines adaptive color * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines adaptive color * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum AdaptiveColor { /** * Defines the fixed value color adaptive mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the fixed value color adaptive mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ DEFAULT, /** * Defines the background average color adaptive mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the background average color adaptive mode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ AVERAGE, } /** * Defines modal transition type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines modal transition type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum ModalTransition { /** * Use default animation. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Use default animation. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ DEFAULT, /** * Use none animation. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Use none animation. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ NONE, /** * Use alpha animation. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Use alpha animation. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ ALPHA, } /** * Defines the options of backgroundBlurStyle * * @interface BackgroundBlurStyleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the options of backgroundBlurStyle * * @interface BackgroundBlurStyleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface BackgroundBlurStyleOptions extends BlurStyleOptions {} /** * Defines the options of ForegroundBlurStyle * * @interface ForegroundBlurStyleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the options of ForegroundBlurStyle * * @interface ForegroundBlurStyleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface ForegroundBlurStyleOptions extends BlurStyleOptions {} /** * Defines the options of blur * * @interface BlurOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface BlurOptions { /** * Fuzzy gray scale parameter. * @type { [number, number] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ grayscale: [number, number]; } /** * Defines the options of blurStyle * * @interface BlurStyleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the options of blurStyle * * @interface BlurStyleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface BlurStyleOptions { /** * color mode * * @type { ?ThemeColorMode } * @default ThemeColorMode.SYSTEM * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * color mode * * @type { ?ThemeColorMode } * @default ThemeColorMode.SYSTEM * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ colorMode?: ThemeColorMode; /** * adaptive color * * @type { ?AdaptiveColor } * @default AdaptiveColor.DEFAULT * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * adaptive color * * @type { ?AdaptiveColor } * @default AdaptiveColor.DEFAULT * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ adaptiveColor?: AdaptiveColor; /** * Define the scale of blur effect. * The range of value is [0, 1]. The larger the value, the more obvious the blurring effect. * A value of 0 indicates no blur effect and a value of 1 indicates a complete blur effect. * * @type { ?number } * @default 1.0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ scale?: number; /** * Defines the options of blur * * @type { ?BlurOptions } * @default { grayScale: [0,0] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ blurOptions?: BlurOptions; } /** * Defines the options of BackgroundEffect * * @interface BackgroundEffectOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface BackgroundEffectOptions { /** * Define the radius size of BackgroundEffect.The range of this value is [0, ∞) * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ radius: number; /** * Define the saturation of BackgroundEffect. Value range [0, ∞) * * @type { ?number } * @default 1 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ saturation?: number; /** * Define the brightness of BackgroundEffect. Value range [0, ∞) * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion. * @type { ?number } * @default 1 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ brightness?: number; /** * color the brightness of BackgroundEffect. * * @type { ?ResourceColor } * @default Color.Transparent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ color?: ResourceColor; /** * Define the adaptiveColor of BackgroundEffect. * * @type { ?AdaptiveColor } * @default AdaptiveColor.DEFAULT * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ adaptiveColor?: AdaptiveColor; /** * Define the blurOptions of BackgroundEffect. * * @type { ?BlurOptions } * @default { grayScale: [0,1] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ blurOptions?: BlurOptions; } /** * Provide an interface for the text style of picker * * @interface PickerTextStyle * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Provide an interface for the text style of picker * * @interface PickerTextStyle * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface PickerTextStyle { /** * Define the text color of picker. * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define the text color of picker. * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ color?: ResourceColor; /** * Define the text font of picker. * Only support size and weight. * * @type { ?Font } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define the text font of picker. * Only support size and weight. * * @type { ?Font } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ font?: Font; } /** * Define the type of shadow * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define the type of shadow * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum ShadowType { /** * Define a color type of shadow * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define a color type of shadow * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ COLOR, /** * Define a blur type of shadow * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define a blur type of shadow * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ BLUR, } /** * Define the options of shadow * * @interface ShadowOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Define the options of shadow * * @interface ShadowOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define the options of shadow * * @interface ShadowOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Define the options of shadow * * @interface ShadowOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface ShadowOptions { /** * Define the radius size of shadow * * @type { number | Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Define the radius size of shadow * * @type { number | Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define the radius size of shadow * * @type { number | Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Define the radius size of shadow * * @type { number | Resource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ radius: number | Resource; /** * Define the type of shadow * * @type { ?ShadowType } * @default ShadowType.COLOR * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Define the type of shadow * * @type { ?ShadowType } * @default ShadowType.COLOR * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ type?: ShadowType; /** * Define the color of shadow * * @type { ?(Color | string | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Define the color of shadow * * @type { ?(Color | string | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define the color of shadow * * @type { ?(Color | string | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Define the color or the color strategy of shadow * * @type { ?(Color | string | Resource| ColoringStrategy) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ color?: Color | string | Resource | ColoringStrategy; /** * Define the horizontal offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Define the horizontal offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define the horizontal offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Define the horizontal offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ offsetX?: number | Resource; /** * Define the vertical offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Define the vertical offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Define the vertical offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Define the vertical offset size of shadow * * @type { ?(number | Resource) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ offsetY?: number | Resource; /** * Define whether the shadow should fill the area * * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ fill?: boolean; } /** * enum Shadow style * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * enum Shadow style * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum ShadowStyle { /** * Defines the super small default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the super small default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ OUTER_DEFAULT_XS, /** * Defines the small default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the small default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ OUTER_DEFAULT_SM, /** * Defines the medium default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the medium default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ OUTER_DEFAULT_MD, /** * Defines the large default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the large default shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ OUTER_DEFAULT_LG, /** * Defines the small floating shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the small floating shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ OUTER_FLOATING_SM, /** * Defines the medium floating shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the medium floating shadow style. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ OUTER_FLOATING_MD, } /** * Defines the options of Shadow. * * @interface MultiShadowOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the options of Shadow. * * @interface MultiShadowOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface MultiShadowOptions { /** * Current shadow radius. * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Current shadow radius. * * @type { ?(number | Resource) } * @default 20 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ radius?: number | Resource; /** * Current shadow offsetX. * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Current shadow offsetX. * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ offsetX?: number | Resource; /** * Current shadow offsetY * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Current shadow offsetY * * @type { ?(number | Resource) } * @default 5 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ offsetY?: number | Resource; } /** * Enumerates the safe area types. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Enumerates the safe area types. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum SafeAreaType { /** * Default area of the system, including the status bar and navigation bar. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Default area of the system, including the status bar and navigation bar. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ SYSTEM, /** * Notch or punch hole. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Notch or punch hole. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ CUTOUT, /** * Soft keyboard area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Soft keyboard area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ KEYBOARD } /** * Enumerates the safe area edges. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Enumerates the safe area edges. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum SafeAreaEdge { /** * Top edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Top edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ TOP, /** * Bottom edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Bottom edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ BOTTOM, /** * Start edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Start edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ START, /** * End edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * End edge of the safe area. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ END } /** * Defines sheet size type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines sheet size type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare enum SheetSize { /** * Defines the sheet size medium height type. The height is half the screen height * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the sheet size medium height type. The height is half the screen height * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ MEDIUM, /** * Defines the sheet size large height type. The height is almost screen height. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the sheet size large height type. The height is almost screen height. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ LARGE, /** * Defines the sheet size fit content height type. The height fit content. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ FIT_CONTENT = 2, } /** * Defines the base event. * * @interface BaseEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the base event. * * @interface BaseEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the base event. * * @interface BaseEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the base event. * * @interface BaseEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface BaseEvent { /** * Defines the current target which fires this event. * * @type { EventTarget } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the current target which fires this event. * * @type { EventTarget } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the current target which fires this event. * * @type { EventTarget } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the current target which fires this event. * * @type { EventTarget } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ target: EventTarget; /** * Event timestamp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Event timestamp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Event timestamp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Event timestamp. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ timestamp: number; /** * the event source info. * * @type { SourceType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * the event source info. * * @type { SourceType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * the event source info. * * @type { SourceType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * the event source info. * * @type { SourceType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ source: SourceType; /** * Touch pressure. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Touch pressure. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Touch pressure. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ pressure: number; /** * The angle between pencil projection on plane-X-Y and axis-Z. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The angle between pencil projection on plane-X-Y and axis-Z. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The angle between pencil projection on plane-X-Y and axis-Z. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ tiltX: number; /** * The angle between pencil projection on plane-Y-Z and axis-Z. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The angle between pencil projection on plane-Y-Z and axis-Z. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The angle between pencil projection on plane-Y-Z and axis-Z. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ tiltY: number; /** * The event tool type info. * * @type { SourceTool } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The event tool type info. * * @type { SourceTool } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The event tool type info. * * @type { SourceTool } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ sourceTool: SourceTool; } /** * Border image option * * @interface BorderImageOption * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image option * * @interface BorderImageOption * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image option * * @interface BorderImageOption * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface BorderImageOption { /** * Border image slice * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image slice * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image slice * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ slice?: Length | EdgeWidths, /** * Border image repeat * * @type { ?RepeatMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image repeat * * @type { ?RepeatMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image repeat * * @type { ?RepeatMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ repeat?: RepeatMode, /** * Border image source * * @type { ?(string | Resource | LinearGradient) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image source * * @type { ?(string | Resource | LinearGradient) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image source * * @type { ?(string | Resource | LinearGradient) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ source?: string | Resource | LinearGradient, /** * Border image width * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image width * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image width * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ width?: Length | EdgeWidths, /** * Border image outset * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image outset * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image outset * * @type { ?(Length | EdgeWidths) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ outset?: Length | EdgeWidths, /** * Border image center fill * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image center fill * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image center fill * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ fill?: boolean } /** * The tap action triggers this method invocation. * * @interface ClickEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The tap action triggers this method invocation. * * @interface ClickEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The tap action triggers this method invocation. * * @interface ClickEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The tap action triggers this method invocation. * * @interface ClickEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface ClickEvent extends BaseEvent { /** * X coordinate of the click point relative to the left edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * X coordinate of the click point relative to the left edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ displayX: number; /** * Y coordinate of the click point relative to the upper edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Y coordinate of the click point relative to the upper edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ displayY: number; /** * X coordinate of the click point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * X coordinate of the click point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ windowX: number; /** * Y coordinate of the click point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Y coordinate of the click point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ windowY: number; /** * X coordinate of the click point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead ClickEvent#windowX */ screenX: number; /** * Y coordinate of the click point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead ClickEvent#windowY */ screenY: number; /** * X coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * X coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * X coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * X coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ x: number; /** * Y coordinate of the click point relative to the upper edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Y coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Y coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Y coordinate of the click point relative to the left edge of the clicked element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ y: number; } /** * The hover action triggers this method invocation. * * @interface HoverEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * The hover action triggers this method invocation. * * @interface HoverEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare interface HoverEvent extends BaseEvent { /** * The blocking hover event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * The blocking hover event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ stopPropagation: () => void; } /** * The mouse click action triggers this method invocation. * * @interface MouseEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * The mouse click action triggers this method invocation. * * @interface MouseEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare interface MouseEvent extends BaseEvent { /** * Mouse button of the click event. * * @type { MouseButton } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Mouse button of the click event. * * @type { MouseButton } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ button: MouseButton; /** * Mouse action of the click event. * * @type { MouseAction } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Mouse action of the click event. * * @type { MouseAction } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ action: MouseAction; /** * X coordinate of the mouse point relative to the left edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * X coordinate of the mouse point relative to the left edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ displayX: number; /** * Y coordinate of the mouse point relative to the upper edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Y coordinate of the mouse point relative to the upper edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ displayY: number; /** * X coordinate of the mouse point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * X coordinate of the mouse point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ windowX: number; /** * Y coordinate of the mouse point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Y coordinate of the mouse point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ windowY: number; /** * X coordinate of the mouse point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 * @deprecated since 10 * @useinstead MouseEvent#windowX */ screenX: number; /** * Y coordinate of the mouse point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 * @deprecated since 10 * @useinstead MouseEvent#windowY */ screenY: number; /** * X coordinate of the mouse point relative to the left edge of the mouse hit element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * X coordinate of the mouse point relative to the left edge of the mouse hit element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ x: number; /** * Y coordinate of the mouse point relative to the upper edge of the mouse hit element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Y coordinate of the mouse point relative to the upper edge of the mouse hit element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ y: number; /** * The blocking event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * The blocking event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ stopPropagation: () => void; } /** * Type of the touch event. * * @interface TouchObject * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Type of the touch event. * * @interface TouchObject * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Type of the touch event. * * @interface TouchObject * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface TouchObject { /** * Type of the touch event. * * @type { TouchType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Type of the touch event. * * @type { TouchType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Type of the touch event. * * @type { TouchType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ type: TouchType; /** * Finger unique identifier. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Finger unique identifier. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Finger unique identifier. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ id: number; /** * X coordinate of the touch point relative to the left edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * X coordinate of the touch point relative to the left edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ displayX: number; /** * Y coordinate of the touch point relative to the upper edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Y coordinate of the touch point relative to the upper edge of the device screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ displayY: number; /** * X coordinate of the touch point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * X coordinate of the touch point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ windowX: number; /** * Y coordinate of the touch point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Y coordinate of the touch point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ windowY: number; /** * X coordinate of the touch point relative to the left edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead TouchObject#windowX */ screenX: number; /** * Y coordinate of the touch point relative to the upper edge of the current window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead TouchObject#windowY */ screenY: number; /** * X coordinate of the touch point relative to the left edge of the touched element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * X coordinate of the touch point relative to the left edge of the touched element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * X coordinate of the touch point relative to the left edge of the touched element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ x: number; /** * Y coordinate of the touch point relative to the upper edge of the touched element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Y coordinate of the touch point relative to the upper edge of the touched element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Y coordinate of the touch point relative to the upper edge of the touched element. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ y: number; } /** * TouchObject getHistoricalPoints Function Parameters * * @interface HistoricalPoint * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * TouchObject getHistoricalPoints Function Parameters * * @interface HistoricalPoint * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface HistoricalPoint { /** * The base touchObject information of historicalPoint * * @type { TouchObject } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The base touchObject information of historicalPoint * * @type { TouchObject } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ touchObject: TouchObject; /** * Contact area between the finger pad and the screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Contact area between the finger pad and the screen. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ size: number; /** * Pressure of the touch event. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Pressure of the touch event. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ force: number; /** * Timestamp of the touch event. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Timestamp of the touch event. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ timestamp: number; } /** * Touch Action Function Parameters * * @interface TouchEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Touch Action Function Parameters * * @interface TouchEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Touch Action Function Parameters * * @interface TouchEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface TouchEvent extends BaseEvent { /** * Type of the touch event. * * @type { TouchType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Type of the touch event. * * @type { TouchType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Type of the touch event. * * @type { TouchType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ type: TouchType; /** * All finger information. * * @type { TouchObject[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * All finger information. * * @type { TouchObject[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * All finger information. * * @type { TouchObject[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ touches: TouchObject[]; /** * Indicates the current changed finger information. * * @type { TouchObject[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Indicates the current changed finger information. * * @type { TouchObject[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Indicates the current changed finger information. * * @type { TouchObject[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ changedTouches: TouchObject[]; /** * The blocking event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The blocking event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The blocking event pops up. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ stopPropagation: () => void; /** * Get the historical points. * * @returns { Array } - return all historical points. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get the historical points. * * @returns { Array } - return all historical points. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getHistoricalPoints(): Array; } /** * Defines the PixelMap type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the PixelMap type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the PixelMap type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare type PixelMap = import('../api/@ohos.multimedia.image').default.PixelMap; /** * pixelmap object with release function. * * @interface PixelMapMock * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 7 */ declare interface PixelMapMock { /** * release function. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 7 */ release(): void; } /** * Enum for Drag Behavior. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Enum for Drag Behavior. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare enum DragBehavior { /** * If drag use copy event, then set DragBehavior.COPY. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If drag use copy event, then set DragBehavior.COPY. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ COPY, /** * If drag use move event, then set DragBehavior.MOVE. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If drag use move event, then set DragBehavior.MOVE. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ MOVE } /** * Import the UnifiedData type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Import the UnifiedData type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare type UnifiedData = import('../api/@ohos.data.unifiedDataChannel').default.UnifiedData; /** * Import the Summary type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Import the Summary type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare type Summary = import('../api/@ohos.data.unifiedDataChannel').default.Summary; /** * Import the UniformDataType type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Import the UniformDataType type object for ui component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare type UniformDataType = import('../api/@ohos.data.uniformTypeDescriptor').default.UniformDataType; /** * Enum for Drag Result. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Enum for Drag Result. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare enum DragResult { /** * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ DRAG_SUCCESSFUL = 0, /** * If drag fail, return DragResult.DRAG_FAILED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If drag fail, return DragResult.DRAG_FAILED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ DRAG_FAILED = 1, /** * If drag action cancel, return DragResult.DRAG_CANCELED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If drag action cancel, return DragResult.DRAG_CANCELED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ DRAG_CANCELED = 2, /** * If node allow drop in, return DragResult.DROP_ENABLED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If node allow drop in, return DragResult.DROP_ENABLED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ DROP_ENABLED = 3, /** * If node don't allow drop in, return DragResult.DROP_DISABLED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If node don't allow drop in, return DragResult.DROP_DISABLED. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ DROP_DISABLED = 4 } /** * Enum for BlendMode. * Blend modes for compositing current component * with overlapping content. Use overlapping content * as dst, current component as src. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ declare enum BlendMode { /** * Hybrid mode does not take effect * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ NONE = 0, /** * Clear destination color covered by the source to 0. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ CLEAR = 1, /** * r = s * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SRC = 2, /** * r = d * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DST = 3, /** * r = s + (1 - sa) * d * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SRC_OVER = 4, /** * r = d + (1 - da) * s * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DST_OVER = 5, /** * r = s * da * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SRC_IN = 6, /** * r = d * sa * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DST_IN = 7, /** * r = s * (1 - da) * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SRC_OUT = 8, /** * r = d * (1 - sa) * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DST_OUT = 9, /** * r = s * da + d * (1 - sa) * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SRC_ATOP = 10, /** * r = d * sa + s * (1 - da) * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DST_ATOP = 11, /** * r = s * (1 - da) + d * (1 - sa) * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ XOR = 12, /** * r = min(s + d, 1) * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ PLUS = 13, /** * r = s * d * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ MODULATE = 14, /** * r = s + d - s * d * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SCREEN = 15, /** * multiply or screen, depending on destination * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ OVERLAY = 16, /** * rc = s + d - max(s * da, d * sa), ra = kSrcOver * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DARKEN = 17, /** * rc = s + d - min(s * da, d * sa), ra = kSrcOver * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ LIGHTEN = 18, /** * brighten destination to reflect source * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ COLOR_DODGE = 19, /** * darken destination to reflect source * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ COLOR_BURN = 20, /** * multiply or screen, depending on source * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ HARD_LIGHT = 21, /** * lighten or darken, depending on source * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SOFT_LIGHT = 22, /** * rc = s + d - 2 * (min(s * da, d * sa)), ra = kSrcOver * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ DIFFERENCE = 23, /** * rc = s + d - two(s * d), ra = kSrcOver * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ EXCLUSION = 24, /** * r = s * (1 - da) + d * (1 - sa) + s * d * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ MULTIPLY = 25, /** * hue of source with saturation and luminosity of destination * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ HUE = 26, /** * saturation of source with hue and luminosity of destination * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ SATURATION = 27, /** * hue and saturation of source with luminosity of destination * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ COLOR = 28, /** * luminosity of source with hue and saturation of destination * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ LUMINOSITY = 29 } /** * Enum for BlendApplyType. * Indicate how to apply specified blend mode to * the view's content. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ declare enum BlendApplyType { /** * Blend view's content in sequence over dst * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ FAST = 0, /** * Composite this views's contents into an * offscreen image and then blend over dst * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ OFFSCREEN = 1, } /** * DragEvent object description * * @interface DragEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * DragEvent object description * * @interface DragEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare interface DragEvent { /** * X coordinate of the touch point relative to the left edge of the device screen. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * X coordinate of the touch point relative to the left edge of the device screen. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ getDisplayX(): number; /** * Y coordinate of the touch point relative to the upper edge of the device screen. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Y coordinate of the touch point relative to the upper edge of the device screen. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ getDisplayY(): number; /** * X coordinate of the touch point relative to the left edge of the current window. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * X coordinate of the touch point relative to the left edge of the current window. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ getWindowX(): number; /** * Y coordinate of the touch point relative to the left edge of the current window. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Y coordinate of the touch point relative to the left edge of the current window. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ getWindowY(): number; /** * X coordinate of the touch point relative to the left edge of the current window. in vp. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead DragEvent#getWindowX */ getX(): number; /** * Y coordinate of the touch point relative to the left edge of the current window. in vp. * * @returns { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead DragEvent#getWindowY */ getY(): number; /** * If copy is COPY, this DragEvent is a copy event. * @type { DragBehavior } Operation, if use copy then set COPY, else set MOVE. * @default COPY * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If copy is COPY, this DragEvent is a copy event. * @type { DragBehavior } Operation, if use copy then set COPY, else set MOVE. * @default COPY * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ dragBehavior: DragBehavior; /** * If useCustomDropAnimation is true, System will not use drop animation. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * If useCustomDropAnimation is true, System will not use drop animation. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ useCustomDropAnimation: boolean; /** * Set dragData into DragEvent. * * @param { UnifiedData } unifiedData - dragData. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set dragData into DragEvent. * * @param { UnifiedData } unifiedData - dragData. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ setData(unifiedData: UnifiedData): void; /** * Get dragData from DragEvent. * * @returns { UnifiedData } - get dragData. * @throws { BusinessError } 190001 - data not found. * @throws { BusinessError } 190002 - data error. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get dragData from DragEvent. * * @returns { UnifiedData } - get dragData. * @throws { BusinessError } 190001 - data not found. * @throws { BusinessError } 190002 - data error. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getData(): UnifiedData; /** * Get dragData summary from DragEvent. * * @returns { Summary } - get Summary Data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get dragData summary from DragEvent. * * @returns { Summary } - get Summary Data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getSummary(): Summary; /** * Set dragEvent result to DragEvent. * * @param { DragResult } dragResult - the return of dragEvent. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Set dragEvent result to DragEvent. * * @param { DragResult } dragResult - the return of dragEvent. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ setResult(dragResult: DragResult): void; /** * Get dragEvent result from DragEvent. * * @returns { DragResult } - dragResult Data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Get dragEvent result from DragEvent. * * @returns { DragResult } - dragResult Data. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ getResult(): DragResult; /** * Get the rectangle of drag window. * * @returns { Rectangle } - getPreview rectangle. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Get the rectangle of drag window. * * @returns { Rectangle } - getPreview rectangle. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ getPreviewRect(): Rectangle; /** * Get the x axis velocity of drag gesture. * * @returns { number } - get x axis velocity. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get the x axis velocity of drag gesture. * * @returns { number } - get x axis velocity. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getVelocityX(): number; /** * Get the y axis velocity of drag gesture. * * @returns { number } - get y axis velocity. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get the y axis velocity of drag gesture. * * @returns { number } - get y axis velocity. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getVelocityY(): number; /** * Get the velocity of drag gesture. * * @returns { number } - get velocity. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get the velocity of drag gesture. * * @returns { number } - get velocity. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getVelocity(): number; } /** * Import the IntentionCode type object for IntentionCode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Import the IntentionCode type object for IntentionCode. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare type IntentionCode = import('../api/@ohos.multimodalInput.intentionCode').IntentionCode; /** * KeyEvent object description: * * @interface KeyEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * KeyEvent object description: * * @interface KeyEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * KeyEvent object description: * * @interface KeyEvent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface KeyEvent { /** * Type of a key. * * @type { KeyType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Type of a key. * * @type { KeyType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Type of a key. * * @type { KeyType } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ type: KeyType; /** * Key code of a key * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Key code of a key * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Key code of a key * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ keyCode: number; /** * Key value of a key. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Key value of a key. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Key value of a key. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ keyText: string; /** * Type of the input device that triggers the current key, such as the keyboard or handle. * * @type { KeySource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Type of the input device that triggers the current key, such as the keyboard or handle. * * @type { KeySource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Type of the input device that triggers the current key, such as the keyboard or handle. * * @type { KeySource } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ keySource: KeySource; /** * Indicates the ID of the input device that triggers the current key. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Indicates the ID of the input device that triggers the current key. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Indicates the ID of the input device that triggers the current key. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ deviceId: number; /** * Indicates the status of the key when the key is pressed. * The value 1 indicates the pressed state, and the value 0 indicates the unpressed state. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Indicates the status of the key when the key is pressed. * The value 1 indicates the pressed state, and the value 0 indicates the unpressed state. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Indicates the status of the key when the key is pressed. * The value 1 indicates the pressed state, and the value 0 indicates the unpressed state. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ metaKey: number; /** * Timestamp when the key was pressed. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Timestamp when the key was pressed. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Timestamp when the key was pressed. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ timestamp: number; /** * Block event bubbling. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Block event bubbling. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Block event bubbling. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ stopPropagation: () => void; /** * Intention code of a key or modifier keys. * * @type { IntentionCode } * @default IntentionCode.INTENTION_UNKNOWN * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Intention code of a key or modifier keys. * * @type { IntentionCode } * @default IntentionCode.INTENTION_UNKNOWN * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ intentionCode: IntentionCode; } /** * Overlay module options * * @interface BindOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Overlay module options * * @interface BindOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface BindOptions { /** * Defines the background color * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the background color * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ backgroundColor?: ResourceColor; /** * Callback function when overlay interface appears * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Callback function when overlay interface appears * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onAppear?: () => void; /** * Callback function when overlay interface exits * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Callback function when overlay interface exits * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onDisappear?: () => void; } /** * Component content cover options * * @interface ContentCoverOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Component content cover options * * @interface ContentCoverOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface ContentCoverOptions extends BindOptions { /** * Defines transition type * * @type { ?ModalTransition } * @default ModalTransition.Default * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines transition type * * @type { ?ModalTransition } * @default ModalTransition.Default * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ modalTransition?: ModalTransition, } /** * Component sheet title options * * @interface SheetTitleOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface SheetTitleOptions { /** * Defines title text * * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ title: ResourceStr; /** * Defines subtitle text * * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ subtitle?: ResourceStr; } /** * Defines the sheet type. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare enum SheetType { /** * Defines bottom sheet type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ BOTTOM = 0, /** * Defines center sheet type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ CENTER = 1, /** * Defines popup sheet type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ POPUP = 2, } /** * Component sheet dismiss * * @interface SheetDismiss * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface SheetDismiss { /** * Defines sheet dismiss function * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ dismiss: () => void; } /** * Component sheet options * * @interface SheetOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Component sheet options * * @interface SheetOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface SheetOptions extends BindOptions { /** * Defines sheet height * * @type { ?(SheetSize | Length) } * @default Sheet.LARGE * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines sheet height * * @type { ?(SheetSize | Length) } * @default Sheet.LARGE * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ height?: SheetSize | Length; /** * Defines whether the control bar is displayed. * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines whether the control bar is displayed. * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ dragBar?: boolean; /** * Defines sheet maskColor * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines sheet maskColor * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ maskColor?: ResourceColor; /** * Defines sheet detents * * @type { ?[(SheetSize | Length), (SheetSize | Length)?, (SheetSize | Length)?] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ detents?: [(SheetSize | Length), (SheetSize | Length)?, (SheetSize | Length)?]; /** * Defines sheet background blur Style * * @type { ?BlurStyle } * @default BlurStyle.NONE * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ blurStyle?: BlurStyle; /** * Defines whether the close icon is displayed * * @type { ?(boolean | Resource) } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ showClose?: boolean | Resource; /** * Defines the sheet prefer type * * @type { ?(SheetType.CENTER | SheetType.POPUP) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ preferType?: SheetType.CENTER | SheetType.POPUP; /** * Defines the sheet title * * @type { ?(SheetTitleOptions | CustomBuilder) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ title?: SheetTitleOptions | CustomBuilder; /** * Callback function when the sheet interactive dismiss * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ shouldDismiss?: (sheetDismiss: SheetDismiss) => void; /** * Set whether interaction is allowed outside the sheet * * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ enableOutsideInteractive?: boolean; } /** * Component State Styles. * * @interface StateStyles * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Component State Styles. * * @interface StateStyles * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Component State Styles. * * @interface StateStyles * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Component State Styles. * * @interface StateStyles * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface StateStyles { /** * Defines normal state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines normal state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines normal state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines normal state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ normal?: any; /** * Defines pressed state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines pressed state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines pressed state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines pressed state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ pressed?: any; /** * Defines disabled state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines disabled state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines disabled state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines disabled state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ disabled?: any; /** * Defines focused state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines focused state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines focused state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines focused state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ focused?: any; /** * Defines clicked state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines clicked state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines clicked state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines clicked state styles. * * @type { ?any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ clicked?: any; /** * Defines selected state styles. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines selected state styles. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ selected?: object; } /** * Defines the options of popup message. * * @interface PopupMessageOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the options of popup message. * * @interface PopupMessageOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface PopupMessageOptions { /** * Sets the color of popup text. * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the color of popup text. * * @type { ?ResourceColor } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ textColor?: ResourceColor; /** * Sets the font of popup text. * * @type { ?Font } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the font of popup text. * * @type { ?Font } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ font?: Font; } /** * Defines the popup options. * * @interface PopupOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the popup options. * * @interface PopupOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the popup options. * * @interface PopupOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface PopupOptions { /** * Information in the pop-up window. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Information in the pop-up window. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Information in the pop-up window. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ message: string; /** * placement On Top * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 10 * @useinstead PopupOptions#placement */ placementOnTop?: boolean; /** * The placement of popup. * Supports all positions defined in Placement. * * @type { ?Placement } * @default Placement.Bottom * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The placement of popup. * Supports all positions defined in Placement. * * @type { ?Placement } * @default Placement.Bottom * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ placement?: Placement; /** * The first button. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The first button. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The first button. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ primaryButton?: { /** * Button text value * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Button text value * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Button text value * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ value: string; /** * action * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * action * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * action * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ action: () => void; }; /** * The second button. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The second button. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The second button. * * @type { ?object } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ secondaryButton?: { /** * Button text value * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Button text value * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Button text value * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ value: string; /** * action * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * action * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * action * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ action: () => void; }; /** * on State Change * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * on State Change * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * on State Change * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onStateChange?: (event: { /** * is Visible. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * is Visible. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ isVisible: boolean }) => void; /** * The offset of the sharp corner of popup. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * The offset of the sharp corner of popup. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The offset of the sharp corner of popup. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ arrowOffset?: Length; /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ showInSubWindow?: boolean; /** * The mask to block gesture events of popup. * When mask is set false, gesture events are not blocked. * When mask is set true, gesture events are blocked and mask color is transparent. * * @type { ?(boolean | { color: ResourceColor }) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The mask to block gesture events of popup. * When mask is set false, gesture events are not blocked. * When mask is set true, gesture events are blocked and mask color is transparent. * * @type { ?(boolean | { color: ResourceColor }) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ mask?: boolean | { color: ResourceColor }; /** * Sets the options of popup message. * * @type { ?PopupMessageOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the options of popup message. * * @type { ?PopupMessageOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ messageOptions?: PopupMessageOptions /** * Sets the space of between the popup and target. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the space of between the popup and target. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ targetSpace?: Length /** * whether show arrow * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * whether show arrow * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ enableArrow?: boolean; /** * Sets the position offset of the popup. * * @type { ?Position } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the position offset of the popup. * * @type { ?Position } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ offset?: Position /** * Set the background color of the popup. * * @type { ?(Color | string | Resource | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ popupColor?: Color | string | Resource | number; /** * Whether hide popup when click mask * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ autoCancel?: boolean; /** * Set the width of the popup. * * @type { ?Dimension } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ width?: Dimension; /** * The position of the sharp corner of popup. * * @type { ?ArrowPointPosition } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ arrowPointPosition?: ArrowPointPosition; /** * The width of the arrow. * * @type { ?Dimension } * @default 16.0_vp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ arrowWidth?: Dimension; /** * The height of the arrow. * * @type { ?Dimension } * @default 8.0_vp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ arrowHeight?: Dimension; /** * The round corners of the popup. * * @type { ?Dimension } * @default 20.0_vp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ radius?: Dimension; /** * The style of popup Shadow. * * @type { ?(ShadowOptions | ShadowStyle) } * @default ShadowStyle.OUTER_DEFAULT_MD. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ shadow?: ShadowOptions | ShadowStyle; /** * Defines popup background blur Style * * @type { ?BlurStyle } * @default BlurStyle.COMPONENT_ULTRA_THICK * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ backgroundBlurStyle?: BlurStyle; } /** * Defines the custom popup options. * * @interface CustomPopupOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the custom popup options. * * @interface CustomPopupOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the custom popup options. * * @interface CustomPopupOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface CustomPopupOptions { /** * builder of popup * * @type { CustomBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * builder of popup * * @type { CustomBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * builder of popup * * @type { CustomBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ builder: CustomBuilder; /** * placement of popup * * @type { ?Placement } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * placement of popup * * @type { ?Placement } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * placement of popup * * @type { ?Placement } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ placement?: Placement; /** * mask color of popup * * @type { ?(Color | string | Resource | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 * @deprecated since 10 * @useinstead CustomPopupOptions#mask */ maskColor?: Color | string | Resource | number; /** * background color of popup * * @type { ?(Color | string | Resource | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * background color of popup * * @type { ?(Color | string | Resource | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * background color of popup * * @type { ?(Color | string | Resource | number) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ popupColor?: Color | string | Resource | number; /** * whether show arrow * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * whether show arrow * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * whether show arrow * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ enableArrow?: boolean; /** * whether hide popup when click mask * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * whether hide popup when click mask * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * whether hide popup when click mask * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ autoCancel?: boolean; /** * on State Change * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * on State Change * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * on State Change * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onStateChange?: (event: { /** * is Visible. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * is Visible. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ isVisible: boolean }) => void; /** * The offset of the sharp corner of popup. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * The offset of the sharp corner of popup. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The offset of the sharp corner of popup. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ arrowOffset?: Length; /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ showInSubWindow?: boolean; /** * The mask to block gesture events of popup. * When mask is set false, gesture events are not blocked. * When mask is set true, gesture events are blocked and mask color is transparent. * * @type { ?(boolean | { color: ResourceColor }) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The mask to block gesture events of popup. * When mask is set false, gesture events are not blocked. * When mask is set true, gesture events are blocked and mask color is transparent. * * @type { ?(boolean | { color: ResourceColor }) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ mask?: boolean | { color: ResourceColor }; /** * Sets the space of between the popup and target. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the space of between the popup and target. * * @type { ?Length } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ targetSpace?: Length /** * Sets the position offset of the popup. * * @type { ?Position } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the position offset of the popup. * * @type { ?Position } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ offset?: Position /** * Set the width of the popup. * * @type { ?Dimension } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ width?: Dimension; /** * The position of the sharp corner of popup. * * @type { ?ArrowPointPosition } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ arrowPointPosition?: ArrowPointPosition; /** * The width of the arrow. * * @type { ?Dimension } * @default 16.0_vp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ arrowWidth?: Dimension; /** * The height of the arrow. * * @type { ?Dimension } * @default 8.0_vp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ arrowHeight?: Dimension; /** * The round corners of the popup. * * @type { ?Dimension } * @default 20.0_vp. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ radius?: Dimension; /** * The style of popup Shadow. * * @type { ?(ShadowOptions | ShadowStyle) } * @default ShadowStyle.OUTER_DEFAULT_MD. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ shadow?: ShadowOptions | ShadowStyle; /** * Defines popup background blur Style * * @type { ?BlurStyle } * @default BlurStyle.COMPONENT_ULTRA_THICK * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ backgroundBlurStyle?: BlurStyle; /** * Set popup focusable * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ focusable?: boolean; } /** * Defines the menu preview mode. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare enum MenuPreviewMode { /** * No preview content. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ NONE = 0, /** * Defines image type preview content. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ IMAGE = 1 } /** * Defines the animator range of start and end property. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare type AnimationRange = [from: T, to: T]; /** * Defines the ContextMenu's preview animator options. * * @interface ContextMenuAnimationOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ interface ContextMenuAnimationOptions { /** * Sets the start animator scale and end animator scale. * * @type { ?AnimationRange } * @default - * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ scale?: AnimationRange; } /** * Defines the context menu options. * * @interface ContextMenuOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the context menu options. * * @interface ContextMenuOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface ContextMenuOptions { /** * Sets the position offset of the context menu window. * * @type { ?Position } * @default - * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the position offset of the context menu window. * * @type { ?Position } * @default - * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ offset?: Position; /** * Sets the placement of the context menu window. * * @type { ?Placement } * @default - * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the placement of the context menu window. * * @type { ?Placement } * @default - * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ placement?: Placement; /** * whether show arrow belong to the menu, default: false, not show arrow * * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * whether show arrow belong to the menu, default: false, not show arrow * * @type { ?boolean } * @default false * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ enableArrow?: boolean; /** * The horizontal offset to the left of menu or vertical offset to the top of menu * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * The horizontal offset to the left of menu or vertical offset to the top of menu * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ arrowOffset?: Length; /** * The preview content of context menu. * * @type { ?(MenuPreviewMode | CustomBuilder) } * @default MenuPreviewMode.NONE * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ preview?: MenuPreviewMode | CustomBuilder; /** * Callback function when the context menu appears. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Callback function when the context menu appears. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onAppear?: () => void; /** * Callback function when the context menu disappear. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Callback function when the context menu disappear. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onDisappear?: () => void; /** * Callback function before the context menu animation starts. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ aboutToAppear?: () => void; /** * Callback function before the context menu popAnimation starts. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ aboutToDisappear?: () => void; /** * The preview animator options. * * @type { ?ContextMenuAnimationOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ previewAnimationOptions?: ContextMenuAnimationOptions; /** * Defines the menu's background color * * @type { ?ResourceColor } * @default Color.Transparent * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ backgroundColor?: ResourceColor; /** * Defines menu background blur Style * * @type { ?BlurStyle } * @default BlurStyle.COMPONENT_ULTRA_THICK * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ backgroundBlurStyle?: BlurStyle; } /** * Defines the menu options. * * @interface MenuOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the menu options. * * @interface MenuOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface MenuOptions extends ContextMenuOptions { /** * Sets the title of the menu window. * * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the title of the menu window. * * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ title?: ResourceStr; /** * Whether to display in the sub window. * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ showInSubWindow?: boolean; } /** * Defines the ProgressMask class. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the ProgressMask class. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare class ProgressMask { /** * constructor. * * @param { number } value - indicates the current value of the progress. * @param { number } total - indicates the total value of the progress. * @param { ResourceColor } color - indicates the color of the mask. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * constructor. * * @param { number } value - indicates the current value of the progress. * @param { number } total - indicates the total value of the progress. * @param { ResourceColor } color - indicates the color of the mask. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ constructor(value: number, total: number, color: ResourceColor); /** * Update the current value of the progress. * * @param { number } value - indicates the current value of the progress. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Update the current value of the progress. * * @param { number } value - indicates the current value of the progress. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ updateProgress(value: number): void; /** * Update the color of the mask. * * @param { ResourceColor } value - indicates the color of the mask. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Update the color of the mask. * * @param { ResourceColor } value - indicates the color of the mask. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ updateColor(value: ResourceColor): void; } /** * Defines TouchTestInfo class. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare class TouchTestInfo { /** * Get the X-coordinate relative to the window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ windowX: number; /** * Get the Y-coordinate relative to the window. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ windowY: number; /** * Get the X-coordinate relative to the current component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ parentX: number; /** * Get the Y-coordinate relative to the current component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ parentY: number; /** * Get the X-coordinate relative to the sub component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ x: number; /** * Get the Y-coordinate relative to the sub component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ y: number; /** * Get the rectangle of sub component. * * @type { RectResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ rect: RectResult; /** * Get the name of sub component. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ id: string; } /** * Defines TouchResult class. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare class TouchResult { /** * Defines the touch test strategy. * * @type { TouchTestStrategy } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ strategy: TouchTestStrategy; /** * Defines the component's name. * * @type { ?string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ id?: string; } /** * Set the edge blur effect distance of the corresponding defense line of the component * When the component expand out, no re-layout is triggered * * @interface PixelStretchEffectOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set the edge blur effect distance of the corresponding defense line of the component * When the component expand out, no re-layout is triggered * * @interface PixelStretchEffectOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface PixelStretchEffectOptions { /** * top property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * top property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ top?: Length; /** * bottom property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * bottom property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bottom?: Length; /** * left property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * left property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @type { ?Length } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ left?: Length; /** * right property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * right property. value range (-∞, ∞) * If value > 0, expand outward elements. Else first shrink by value and then expand outward pixels. * * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ right?: Length; } /** * Defines the click effect. * * @interface ClickEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the click effect. * * @interface ClickEffect * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface ClickEffect { /** * Set the click effect level. * * @type { ClickEffectLevel } * @default ClickEffectLevel.Light * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Set the click effect level. * * @type { ClickEffectLevel } * @default ClickEffectLevel.Light * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ level: ClickEffectLevel; /** * Set scale number. * This default scale is same as the scale of click effect level. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Set scale number. * This default scale is same as the scale of click effect level. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ scale?: number; } /** * Define nested scroll options * * @interface NestedScrollOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Define nested scroll options * * @interface NestedScrollOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ declare interface NestedScrollOptions { /** * Set NestedScrollMode when the scrollable component scrolls forward * * @type { NestedScrollMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Set NestedScrollMode when the scrollable component scrolls forward * * @type { NestedScrollMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ scrollForward: NestedScrollMode; /** * Set NestedScrollMode when the scrollable component scrolls backward * * @type { NestedScrollMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Set NestedScrollMode when the scrollable component scrolls backward * * @type { NestedScrollMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ scrollBackward: NestedScrollMode; } /** * Defines the menu element. * * @interface MenuElement * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the menu element. * * @interface MenuElement * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the menu element. * * @interface MenuElement * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface MenuElement { /** * Sets the value of the menu element. * * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the value of the menu element. * * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the value of the menu element. * * @type { ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ value: ResourceStr; /** * Sets the icon of the menu element. * * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the icon of the menu element. * * @type { ?ResourceStr } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ icon?: ResourceStr; /** * If the value is true, the menu element is available and can respond to operations such as clicking. * If the value is false, the menu element is not available and click operations are not responded. * * @type { ?boolean } * @default true * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ enabled?: boolean; /** * Method executed by the callback. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Method executed by the callback. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Method executed by the callback. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ action: () => void; } /** * Defines the attribute modifier. * * @interface AttributeModifier * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface AttributeModifier { /** * Defines the normal update attribute function. * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ applyNormalAttribute?(instance: T) : void; /** * Defines the pressed update attribute function. * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ applyPressedAttribute?(instance: T) : void; /** * Defines the focused update attribute function. * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ applyFocusedAttribute?(instance: T) : void; /** * Defines the disabled update attribute function. * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ applyDisabledAttribute?(instance: T) : void; /** * Defines the selected update attribute function. * * @param { T } instance * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ applySelectedAttribute?(instance: T) : void; } /** * Outline Style * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ declare enum OutlineStyle { /** * Shows as a solid line. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ SOLID = 0, /** * Shows as a series of short square dashed lines. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ DASHED = 1, /** * Displays as a series of dots with a radius of half the borderWidth. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ DOTTED = 2, } /** * Defines the drag preview mode. * * @enum { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ declare enum DragPreviewMode { /** * Default preview mode, let system process preview scale. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ AUTO = 1, /** * Disable system scale to preview panel * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ DISABLE_SCALE = 2, } /** * Defines the preview options. * * @interface DragPreviewOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ declare interface DragPreviewOptions { /** * Drag preview mode. * * @type { ?DragPreviewMode } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ mode?: DragPreviewMode; } /** * Define the options of invert * * @interface InvertOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ declare interface InvertOptions { /** * Defines the low value of threshold * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ low: number; /** * Defines the high value of threshold * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ high: number; /** * Defines the threshold * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ threshold: number; /** *Defines the threshold range * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ thresholdRange: number; } /** * CommonMethod. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * CommonMethod. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * CommonMethod. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * CommonMethod. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare class CommonMethod { /** * constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 7 */ /** * constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 9 * @form */ constructor(); /** * Sets the width of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the width of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the width of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the width of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ width(value: Length): T; /** * Sets the height of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the height of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the height of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the height of the current component. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ height(value: Length): T; /** * Expands the safe area. * * @param { Array } types - Indicates the types of the safe area. * @param { Array } edges - Indicates the edges of the safe area. * @returns { T } The component instance. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Expands the safe area. * * @param { Array } types - Indicates the types of the safe area. * @param { Array } edges - Indicates the edges of the safe area. * @returns { T } The component instance. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ expandSafeArea(types?: Array, edges?: Array): T; /** * Sets the response region of the current component. * * @param { Array | Rectangle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets the response region of the current component. * * @param { Array | Rectangle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the response region of the current component. * * @param { Array | Rectangle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the response region of the current component. * * @param { Array | Rectangle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ responseRegion(value: Array | Rectangle): T; /** * Sets the mouse response region of current component * * @param { Array | Rectangle } value * @returns { T } return the component attribute * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the mouse response region of current component * * @param { Array | Rectangle } value * @returns { T } return the component attribute * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ mouseResponseRegion(value: Array | Rectangle): T; /** * The size of the current component. * * @param { SizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The size of the current component. * * @param { SizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The size of the current component. * * @param { SizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The size of the current component. * * @param { SizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ size(value: SizeOptions): T; /** * constraint Size: * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. * * @param { ConstraintSizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * constraint Size: * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. * * @param { ConstraintSizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * constraint Size: * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. * * @param { ConstraintSizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * constraint Size: * minWidth: minimum Width, maxWidth: maximum Width, minHeight: minimum Height, maxHeight: maximum Height. * * @param { ConstraintSizeOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ constraintSize(value: ConstraintSizeOptions): T; /** * Sets the touchable of the current component * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 9 * @useinstead hitTestBehavior */ touchable(value: boolean): T; /** * Defines the component's hit test behavior in touch events. * * @param { HitTestMode } value - the hit test mode. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Defines the component's hit test behavior in touch events. * * @param { HitTestMode } value - the hit test mode. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Defines the component's hit test behavior in touch events. * * @param { HitTestMode } value - the hit test mode. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ hitTestBehavior(value: HitTestMode): T; /** * Defines the pre-touch test of sub component in touch events. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ onChildTouchTest(event: (value: Array) => TouchResult): T; /** * layout Weight * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * layout Weight * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * layout Weight * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * layout Weight * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ layoutWeight(value: number | string): T; /** * Inner margin. * * @param { Padding | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Inner margin. * * @param { Padding | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Inner margin. * * @param { Padding | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Inner margin. * * @param { Padding | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ padding(value: Padding | Length): T; /** * Outer Margin. * * @param { Margin | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Outer Margin. * * @param { Margin | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Outer Margin. * * @param { Margin | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Outer Margin. * * @param { Margin | Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ margin(value: Margin | Length): T; /** * Background. * * @param { CustomBuilder } builder * @param { object } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Background. * * @param { CustomBuilder } builder * @param { object } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ background(builder: CustomBuilder, options?: { align?: Alignment }): T; /** * Background color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Background color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Background color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Background color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ backgroundColor(value: ResourceColor): T; /** * PixelRound * * @param { PixelRoundPolicy } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ pixelRound(value: PixelRoundPolicy): T; /** * Background image * src: Image address url * * @param { ResourceStr } src * @param { ImageRepeat } repeat * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Background image * src: Image address url * * @param { ResourceStr } src * @param { ImageRepeat } repeat * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Background image * src: Image address url * * @param { ResourceStr } src * @param { ImageRepeat } repeat * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Background image * src: Image address url * * @param { ResourceStr } src * @param { ImageRepeat } repeat * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ backgroundImage(src: ResourceStr, repeat?: ImageRepeat): T; /** * Background image size * * @param { SizeOptions | ImageSize } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Background image size * * @param { SizeOptions | ImageSize } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Background image size * * @param { SizeOptions | ImageSize } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Background image size * * @param { SizeOptions | ImageSize } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ backgroundImageSize(value: SizeOptions | ImageSize): T; /** * Background image position * x:Horizontal coordinate;y:Vertical axis coordinate. * * @param { Position | Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Background image position * x:Horizontal coordinate;y:Vertical axis coordinate. * * @param { Position | Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Background image position * x:Horizontal coordinate;y:Vertical axis coordinate. * * @param { Position | Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Background image position * x:Horizontal coordinate;y:Vertical axis coordinate. * * @param { Position | Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ backgroundImagePosition(value: Position | Alignment): T; /** * Background blur style. * blurStyle:Blur style type. * * @param { BlurStyle } value * @param { BackgroundBlurStyleOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Background blur style. * blurStyle:Blur style type. * * @param { BlurStyle } value * @param { BackgroundBlurStyleOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Background blur style. * blurStyle:Blur style type. * * @param { BlurStyle } value * @param { BackgroundBlurStyleOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): T; /** * options:background effect options. * * @param { BackgroundEffectOptions } options - options indicates the effect options. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ backgroundEffect(options: BackgroundEffectOptions): T; /** * Foreground blur style. * blurStyle:Blur style type. * * @param { BlurStyle } value * @param { ForegroundBlurStyleOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Foreground blur style. * blurStyle:Blur style type. * * @param { BlurStyle } value * @param { ForegroundBlurStyleOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): T; /** * Opacity * * @param { number | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Opacity * * @param { number | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Opacity * * @param { number | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Opacity * * @param { number | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ opacity(value: number | Resource): T; /** * Opacity * width:Border width;color:Border color;radius:Border radius; * * @param { BorderOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Opacity * width:Border width;color:Border color;radius:Border radius; * * @param { BorderOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Opacity * width:Border width;color:Border color;radius:Border radius; * * @param { BorderOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Opacity * width:Border width;color:Border color;radius:Border radius; * * @param { BorderOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ border(value: BorderOptions): T; /** * Border style * * @param { BorderStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Border style * * @param { BorderStyle | EdgeStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border style * * @param { BorderStyle | EdgeStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border style * * @param { BorderStyle | EdgeStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ borderStyle(value: BorderStyle | EdgeStyles): T; /** * Border width * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Border width * * @param { Length | EdgeWidths } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border width * * @param { Length | EdgeWidths } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border width * * @param { Length | EdgeWidths } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ borderWidth(value: Length | EdgeWidths): T; /** * Border color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Border color * * @param { ResourceColor | EdgeColors } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border color * * @param { ResourceColor | EdgeColors } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border color * * @param { ResourceColor | EdgeColors } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ borderColor(value: ResourceColor | EdgeColors): T; /** * Border radius * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Border radius * * @param { Length | BorderRadiuses } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border radius * * @param { Length | BorderRadiuses } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border radius * * @param { Length | BorderRadiuses } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ borderRadius(value: Length | BorderRadiuses): T; /** * Border image * * @param { BorderImageOption } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border image * * @param { BorderImageOption } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border image * * @param { BorderImageOption } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ borderImage(value: BorderImageOption): T; /** * Opacity * width:Outline width;color:Outline color;radius:Outline radius; * * @param { OutlineOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ outline(value: OutlineOptions): T; /** * Outline style * * @param { OutlineStyle | EdgeOutlineStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ outlineStyle(value: OutlineStyle | EdgeOutlineStyles): T; /** * Outline width * * @param { Dimension | EdgeOutlineWidths } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ outlineWidth(value: Dimension | EdgeOutlineWidths): T; /** * Outline color * * @param { ResourceColor | EdgeColors } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ outlineColor(value: ResourceColor | EdgeColors): T; /** * Outline radius * * @param { Dimension | OutlineRadiuses } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ outlineRadius(value: Dimension | OutlineRadiuses): T; /** * Provides the general foreground color capability of UI components, and assigns color values * according to the characteristics of components. * * @param { ResourceColor | ColoringStrategy } value - indicates the color or color selection strategy * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Provides the general foreground color capability of UI components, and assigns color values * according to the characteristics of components. * * @param { ResourceColor | ColoringStrategy } value - indicates the color or color selection strategy * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ foregroundColor(value: ResourceColor | ColoringStrategy): T; /** * Trigger a click event when a click is clicked. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Trigger a click event when a click is clicked. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Trigger a click event when a click is clicked. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Trigger a click event when a click is clicked. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ onClick(event: (event: ClickEvent) => void): T; /** * Trigger a hover event. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Trigger a hover event. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onHover(event: (isHover: boolean, event: HoverEvent) => void): T; /** * Set hover effect. * * @param { HoverEffect } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Set hover effect. * * @param { HoverEffect } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set hover effect. * * @param { HoverEffect } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ hoverEffect(value: HoverEffect): T; /** * Trigger a mouse event. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Trigger a mouse event. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onMouse(event: (event: MouseEvent) => void): T; /** * Trigger a touch event when touched. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Trigger a touch event when touched. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Trigger a touch event when touched. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onTouch(event: (event: TouchEvent) => void): T; /** * Keyboard input * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Keyboard input * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Keyboard input * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onKeyEvent(event: (event: KeyEvent) => void): T; /** * Set focusable. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Set focusable. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set focusable. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ focusable(value: boolean): T; /** * Trigger a event when got focus. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Trigger a event when got focus. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Trigger a event when got focus. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onFocus(event: () => void): T; /** * Trigger a event when lose focus. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Trigger a event when lose focus. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Trigger a event when lose focus. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onBlur(event: () => void): T; /** * Set focus index by key tab. * * @param { number } index * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Set focus index by key tab. * * @param { number } index * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set focus index by key tab. * * @param { number } index * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ tabIndex(index: number): T; /** * Set default focused component when a page create. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Set default focused component when a page create. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set default focused component when a page create. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ defaultFocus(value: boolean): T; /** * Set default focused component when focus on a focus group. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Set default focused component when focus on a focus group. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set default focused component when focus on a focus group. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ groupDefaultFocus(value: boolean): T; /** * Set a component focused when the component be touched. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Set a component focused when the component be touched. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set a component focused when the component be touched. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ focusOnTouch(value: boolean): T; /**git * animation * * @param { AnimateParam } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * animation * * @param { AnimateParam } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * animation * * @param { AnimateParam } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * animation * * @param { AnimateParam } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ animation(value: AnimateParam): T; /** * Transition parameter * * @param { TransitionOptions | TransitionEffect } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Transition parameter * * @param { TransitionOptions | TransitionEffect } value - transition options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Transition parameter * * @param { TransitionOptions | TransitionEffect } value - transition options or transition effect * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Transition parameter * * @param { TransitionOptions | TransitionEffect } value - transition options or transition effect * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ transition(value: TransitionOptions | TransitionEffect): T; /** * Bind gesture recognition. * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Bind gesture recognition. * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Bind gesture recognition. * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ gesture(gesture: GestureType, mask?: GestureMask): T; /** * Binding Preferential Recognition Gestures * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Binding Preferential Recognition Gestures * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Binding Preferential Recognition Gestures * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ priorityGesture(gesture: GestureType, mask?: GestureMask): T; /** * Binding gestures that can be triggered simultaneously with internal component gestures * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Binding gestures that can be triggered simultaneously with internal component gestures * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Binding gestures that can be triggered simultaneously with internal component gestures * gesture:Bound Gesture Type,mask:GestureMask; * * @param { GestureType } gesture * @param { GestureMask } mask * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ parallelGesture(gesture: GestureType, mask?: GestureMask): T; /** * Adds the content blurring effect for the current component. The input parameter is the blurring radius. * The larger the blurring radius, the more blurring the content. * If the value is 0, the content blurring effect is not blurring. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds the content blurring effect for the current component. The input parameter is the blurring radius. * The larger the blurring radius, the more blurring the content. * If the value is 0, the content blurring effect is not blurring. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds the content blurring effect for the current component. The input parameter is the blurring radius. * The larger the blurring radius, the more blurring the content. * If the value is 0, the content blurring effect is not blurring. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds the content blurring effect for the current component. The input parameter is the blurring radius. * The larger the blurring radius, the more blurring the content. * If the value is 0, the content blurring effect is not blurring. * * @param { number } value - value indicates radius of backdrop blur. * @param { BlurOptions } options - options indicates blur options. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ blur(value: number, options?: BlurOptions): T; /** * Adds the content linear gradient blurring effect for the current component. The input parameter is the blurring radius. * * @param { number } value - the blurring radius. * The larger the blurring radius, the more blurring the content, and if the value is 0, the content blurring effect is not blurring. * @param { LinearGradientBlurOptions } options - the linear gradient blur options. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ linearGradientBlur(value: number, options: LinearGradientBlurOptions): T; /** * Adds a highlight effect to the current component. * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion. * The component is displayed as all white (percentage). * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds a highlight effect to the current component. * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion. * The component is displayed as all white (percentage). * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds a highlight effect to the current component. * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion. * The component is displayed as all white (percentage). * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds a highlight effect to the current component. * The input parameter is the highlight proportion. 0 indicates no highlight effect, and 1 indicates the maximum highlight proportion. * The component is displayed as all white (percentage). * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ brightness(value: number): T; /** * Adds a contrast effect to the current component. The input parameter is the contrast value. * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds a contrast effect to the current component. The input parameter is the contrast value. * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds a contrast effect to the current component. The input parameter is the contrast value. * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds a contrast effect to the current component. The input parameter is the contrast value. * A larger contrast value indicates a sharper image. When the contrast value is 0, the image becomes gray. (%) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ contrast(value: number): T; /** * Adds a grayscale effect to the current component. * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change. * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds a grayscale effect to the current component. * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change. * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds a grayscale effect to the current component. * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change. * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds a grayscale effect to the current component. * The value is the gray scale conversion ratio. If the input parameter is 1.0, the gray scale image is completely converted to the gray scale image. If the input parameter is 0.0, the image does not change. * If the input parameter is between 0.0 and 1.0, the effect changes. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ grayscale(value: number): T; /** * Adds a color overlay effect for the current component. The input parameter is the superimposed color. * * @param { Color | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds a color overlay effect for the current component. The input parameter is the superimposed color. * * @param { Color | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds a color overlay effect for the current component. The input parameter is the superimposed color. * * @param { Color | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds a color overlay effect for the current component. The input parameter is the superimposed color. * * @param { Color | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ colorBlend(value: Color | string | Resource): T; /** * Adds a saturation effect to the current component. * The saturation is the ratio of the color-containing component to the achromatic component (gray). * The larger the color-containing component, the greater the saturation. * The larger the achromatic component, the smaller the saturation. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds a saturation effect to the current component. * The saturation is the ratio of the color-containing component to the achromatic component (gray). * The larger the color-containing component, the greater the saturation. * The larger the achromatic component, the smaller the saturation. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds a saturation effect to the current component. * The saturation is the ratio of the color-containing component to the achromatic component (gray). * The larger the color-containing component, the greater the saturation. * The larger the achromatic component, the smaller the saturation. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds a saturation effect to the current component. * The saturation is the ratio of the color-containing component to the achromatic component (gray). * The larger the color-containing component, the greater the saturation. * The larger the achromatic component, the smaller the saturation. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ saturate(value: number): T; /** * Converts the image to sepia. Value defines the scale of the conversion. * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Converts the image to sepia. Value defines the scale of the conversion. * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Converts the image to sepia. Value defines the scale of the conversion. * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Converts the image to sepia. Value defines the scale of the conversion. * A value of 1 is completely sepia, and a value of 0 does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ sepia(value: number): T; /** * Invert the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal. * A value of 0% does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Invert the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal. * A value of 0% does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Invert the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal. * A value of 0% does not change the image. (Percentage) * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Invert the input image. Value defines the scale of the conversion. 100% of the value is a complete reversal. * A value of 0% does not change the image. (Percentage) * * @param { number | InvertOptions } value - value indicates the scale of the conversion or the options of invert. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ invert(value: number | InvertOptions): T; /** * Sets system bar effect to the component. * * @returns { T } return the component attribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ systemBarEffect(): T; /** * Adds the hue rotation effect to the current component. * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value. * If the value exceeds 360deg, the image is circled again. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds the hue rotation effect to the current component. * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value. * If the value exceeds 360deg, the image is circled again. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds the hue rotation effect to the current component. * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value. * If the value exceeds 360deg, the image is circled again. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds the hue rotation effect to the current component. * The input parameter is the rotation angle. When the input parameter is 0deg, the image does not change (the default value is 0deg), and the input parameter does not have a maximum value. * If the value exceeds 360deg, the image is circled again. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ hueRotate(value: number | string): T; /** * Add an attribute to control whether the shadows of the child nodes overlap each other. * * @param { boolean } value - true means the shadows of the child nodes overlap each other effect and drawn in batches. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ useShadowBatching(value: boolean): T; /** * Sets whether the component should apply the effects template defined by the parent effectComponent. * If multiple parent effectComponents are found, the nearest one will be used. * If no parent effectComponent is found, this method has no effect. * * @param { boolean } value - true means the component should apply the effects template. * @returns { T } return the component attribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ useEffect(value: boolean): T; /** * Adds the background blur effect for the current component. The input parameter is the blur radius. * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Adds the background blur effect for the current component. The input parameter is the blur radius. * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Adds the background blur effect for the current component. The input parameter is the blur radius. * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Adds the background blur effect for the current component. The input parameter is the blur radius. * The larger the blur radius, the more blurred the background. If the value is 0, the background blur is not blurred. * * @param { number } value - value indicates radius of backdrop blur. * @param { BlurOptions } options - options indicates the backdrop blur options. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ backdropBlur(value: number, options?: BlurOptions): T; /** * Composite the contents of this view and its children into an offscreen cache before display in the screen. * * @param { boolean } value - if this view and its children need to composite into an offscreen cache. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Composite the contents of this view and its children into an offscreen cache before display in the screen. * * @param { boolean } value - if this view and its children need to composite into an offscreen cache. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ renderGroup(value: boolean): T; /** * Sets the translation effect during page transition. * The value is the start point of entry and end point of exit. * When this parameter is set together with slide, slide takes effect by default. * * @param { TranslateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the translation effect during page transition. * The value is the start point of entry and end point of exit. * When this parameter is set together with slide, slide takes effect by default. * * @param { TranslateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the translation effect during page transition. * The value is the start point of entry and end point of exit. * When this parameter is set together with slide, slide takes effect by default. * * @param { TranslateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the translation effect during page transition. * The value is the start point of entry and end point of exit. * When this parameter is set together with slide, slide takes effect by default. * * @param { TranslateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ translate(value: TranslateOptions): T; /** * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit. * * @param { ScaleOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit. * * @param { ScaleOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit. * * @param { ScaleOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the zoom effect during page transition. The value is the start point of entry and end point of exit. * * @param { ScaleOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ scale(value: ScaleOptions): T; /** * Default number of occupied columns, indicating the number of occupied grid columns when the number of columns (span) of the corresponding size is not set in the useSizeType attribute. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Default number of occupied columns, indicating the number of occupied grid columns when the number of columns (span) of the corresponding size is not set in the useSizeType attribute. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Default number of occupied columns, indicating the number of occupied grid columns when the number of columns (span) of the corresponding size is not set in the useSizeType attribute. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ gridSpan(value: number): T; /** * The default offset column number indicates the number of offset columns of the current component in the start direction of the parent component when the useSizeType attribute does not set the offset of the corresponding dimension. That is, * the current component is located in the nth column. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The default offset column number indicates the number of offset columns of the current component in the start direction of the parent component when the useSizeType attribute does not set the offset of the corresponding dimension. That is, * the current component is located in the nth column. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The default offset column number indicates the number of offset columns of the current component in the start direction of the parent component when the useSizeType attribute does not set the offset of the corresponding dimension. That is, * the current component is located in the nth column. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ gridOffset(value: number): T; /** * Sets the rotation effect during assembly transition. * The values are the start point during insertion and the end point during deletion. * * @param { RotateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the rotation effect during assembly transition. * The values are the start point during insertion and the end point during deletion. * * @param { RotateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the rotation effect during assembly transition. * The values are the start point during insertion and the end point during deletion. * * @param { RotateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the rotation effect during assembly transition. * The values are the start point during insertion and the end point during deletion. * * @param { RotateOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ rotate(value: RotateOptions): T; /** * Sets the transformation matrix for the current component. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the transformation matrix for the current component. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets the transformation matrix for the current component. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ transform(value: object): T; /** * This callback is triggered when a component mounts a display. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * This callback is triggered when a component mounts a display. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * This callback is triggered when a component mounts a display. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * This callback is triggered when a component mounts a display. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ onAppear(event: () => void): T; /** * This callback is triggered when component uninstallation disappears. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * This callback is triggered when component uninstallation disappears. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * This callback is triggered when component uninstallation disappears. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * This callback is triggered when component uninstallation disappears. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ onDisAppear(event: () => void): T; /** * This callback is triggered when the size or position of this component change finished. * * @param { function } event - event callback. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * This callback is triggered when the size or position of this component change finished. * * @param { function } event - event callback. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * This callback is triggered when the size or position of this component change finished. * * @param { function } event - event callback. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onAreaChange(event: (oldValue: Area, newValue: Area) => void): T; /** * Controls the display or hide of the current component. * * @param { Visibility } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Controls the display or hide of the current component. * * @param { Visibility } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Controls the display or hide of the current component. * * @param { Visibility } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Controls the display or hide of the current component. * * @param { Visibility } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ visibility(value: Visibility): T; /** * The percentage of the remaining space of the Flex container allocated to the component on which this property resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The percentage of the remaining space of the Flex container allocated to the component on which this property resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The percentage of the remaining space of the Flex container allocated to the component on which this property resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The percentage of the remaining space of the Flex container allocated to the component on which this property resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ flexGrow(value: number): T; /** * The proportion of the Flex container compression size assigned to the component on which this attribute resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The proportion of the Flex container compression size assigned to the component on which this attribute resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The proportion of the Flex container compression size assigned to the component on which this attribute resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The proportion of the Flex container compression size assigned to the component on which this attribute resides. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ flexShrink(value: number): T; /** * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The base dimension of the assembly on which this attribute is located in the direction of the principal axis in the Flex container. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ flexBasis(value: number | string): T; /** * Overrides the default configuration of alignItems in the Flex Layout container. * * @param { ItemAlign } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Overrides the default configuration of alignItems in the Flex Layout container. * * @param { ItemAlign } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Overrides the default configuration of alignItems in the Flex Layout container. * * @param { ItemAlign } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Overrides the default configuration of alignItems in the Flex Layout container. * * @param { ItemAlign } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ alignSelf(value: ItemAlign): T; /** * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the current component and displays the priority in the layout container. This parameter is valid only in Row, Column, and Flex single-row layouts. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ displayPriority(value: number): T; /** * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * The sibling components in the same container are hierarchically displayed. A larger value of z indicates a higher display level. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ zIndex(value: number): T; /** * If the components of the two pages are configured with the same ID, the shared element transition is performed during transition. If the parameter is set to an empty string, the shared element transition does not occur. For details about the options parameter, see the options parameter description. * * @param { string } id * @param { sharedTransitionOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * If the components of the two pages are configured with the same ID, the shared element transition is performed during transition. If the parameter is set to an empty string, the shared element transition does not occur. For details about the options parameter, see the options parameter description. * * @param { string } id * @param { sharedTransitionOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * If the components of the two pages are configured with the same ID, the shared element transition is performed during transition. If the parameter is set to an empty string, the shared element transition does not occur. For details about the options parameter, see the options parameter description. * * @param { string } id * @param { sharedTransitionOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ sharedTransition(id: string, options?: sharedTransitionOptions): T; /** * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|). * * @param { Direction } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|). * * @param { Direction } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|). * * @param { Direction } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the sliding direction. The enumerated value supports logical AND (&) and logical OR (|). * * @param { Direction } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ direction(value: Direction): T; /** * align * * @param { Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * align * * @param { Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * align * * @param { Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * align * * @param { Alignment } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ align(value: Alignment): T; /** * position * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * position * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * position * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * position * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ position(value: Position): T; /** * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the anchor point of the element when it is positioned. The base point is offset from the top start point of the element. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ markAnchor(value: Position): T; /** * Coordinate offset relative to the layout completion position. * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Coordinate offset relative to the layout completion position. * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Coordinate offset relative to the layout completion position. * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Coordinate offset relative to the layout completion position. * Setting this attribute does not affect the layout of the parent container. The position is adjusted only during drawing. * * @param { Position } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ offset(value: Position): T; /** * If the value is true, the component is available and can respond to operations such as clicking. * If it is set to false, click operations are not responded. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * If the value is true, the component is available and can respond to operations such as clicking. * If it is set to false, click operations are not responded. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * If the value is true, the component is available and can respond to operations such as clicking. * If it is set to false, click operations are not responded. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * If the value is true, the component is available and can respond to operations such as clicking. * If it is set to false, click operations are not responded. * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ enabled(value: boolean): T; /** * Sets the number of occupied columns and offset columns for a specific device width type. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 * @deprecated since 9 * @useinstead grid_col/[GridColColumnOption] and grid_row/[GridRowColumnOption] */ useSizeType(value: { xs?: number | { span: number; offset: number }; sm?: number | { span: number; offset: number }; md?: number | { span: number; offset: number }; lg?: number | { span: number; offset: number }; }): T; /** * Specifies the alignRules of relative container * * @param { AlignRuleOption } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Specifies the alignRules of relative container * * @param { AlignRuleOption } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Specifies the alignRules of relative container * * @param { AlignRuleOption } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ alignRules(value: AlignRuleOption): T; /** * Specifies the aspect ratio of the current component. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Specifies the aspect ratio of the current component. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Specifies the aspect ratio of the current component. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Specifies the aspect ratio of the current component. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ aspectRatio(value: number): T; /** * The click effect level and scale number. * * @param { ClickEffect | null } value * @returns { T } return the component attribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * The click effect level and scale number. * * @param { ClickEffect | null } value * @returns { T } return the component attribute. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ clickEffect(value: ClickEffect | null): T; /** * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. * (To be triggered, press and hold for 170 milliseconds (ms)) * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. * (To be triggered, press and hold for 170 milliseconds (ms)) * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onDragStart(event: (event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo): T; /** * After binding, a callback is triggered when the component is dragged to the range of the component. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * After binding, a callback is triggered when the component is dragged to the range of the component. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onDragEnter(event: (event: DragEvent, extraParams?: string) => void): T; /** * After binding, a callback is triggered when the drag moves within the range of a placeable component. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * After binding, a callback is triggered when the drag moves within the range of a placeable component. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onDragMove(event: (event: DragEvent, extraParams?: string) => void): T; /** * After binding, a callback is triggered when the component is dragged out of the component range. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * After binding, a callback is triggered when the component is dragged out of the component range. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onDragLeave(event: (event: DragEvent, extraParams?: string) => void): T; /** * The component bound to this event can be used as the drag release target. * This callback is triggered when the drag behavior is stopped within the scope of the component. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * The component bound to this event can be used as the drag release target. * This callback is triggered when the drag behavior is stopped within the scope of the component. * * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onDrop(event: (event: DragEvent, extraParams?: string) => void): T; /** * This function is called when the drag event is end. * * @param { function } event - indicates the function to be called. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * This function is called when the drag event is end. * * @param { function } event - indicates the function to be called. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ onDragEnd(event: (event: DragEvent, extraParams?: string) => void): T; /** * Allowed drop uniformData type for this node. * * @param { Array } value - the uniformData type for this node. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Allowed drop uniformData type for this node. * * @param { Array } value - the uniformData type for this node. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ allowDrop(value: Array): T; /** * Enable the selectable area can be dragged. * * @param { boolean } value - true means the area can be dragged, false means the area can't be dragged. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Enable the selectable area can be dragged. * * @param { boolean } value - true means the area can be dragged, false means the area can't be dragged. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ draggable(value: boolean): T; /** * Set preview of the component for dragging process * * @param { CustomBuilder | DragItemInfo } value - preview of the component for dragging process * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ dragPreview(value: CustomBuilder | DragItemInfo): T; /** * Set the selectable area drag preview options. * * @param { DragPreviewOptions } value - preview options value. * @returns { T } property value of type T. * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ dragPreviewOptions(value: DragPreviewOptions): T; /** * Add mask text to the current component. The layout is the same as that of the current component. * * @param { string | CustomBuilder } value * @param { object } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Add mask text to the current component. The layout is the same as that of the current component. * * @param { string | CustomBuilder } value * @param { object } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Add mask text to the current component. The layout is the same as that of the current component. * * @param { string | CustomBuilder } value * @param { object } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Add mask text to the current component. The layout is the same as that of the current component. * * @param { string | CustomBuilder } value * @param { object } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ overlay(value: string | CustomBuilder, options?: { align?: Alignment; offset?: { x?: number; y?: number } }): T; /** * Linear Gradient * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient; colors:Color description for gradients,repeating:repeating. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Linear Gradient * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient; colors:Color description for gradients,repeating:repeating. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Linear Gradient * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient; colors:Color description for gradients,repeating:repeating. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Linear Gradient * angle: Angle of Linear Gradient; direction:Direction of Linear Gradient; colors:Color description for gradients,repeating:repeating. * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ linearGradient(value: { angle?: number | string; direction?: GradientDirection; colors: Array; repeating?: boolean; }): T; /** * Angle Gradient * center:is the center point of the angle gradient * start:Start point of angle gradient * end:End point of angle gradient * number:number * rotating:rotating * colors:Color description for gradients * repeating:repeating * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Angle Gradient * center:is the center point of the angle gradient * start:Start point of angle gradient * end:End point of angle gradient * number:number * rotating:rotating * colors:Color description for gradients * repeating:repeating * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Angle Gradient * center:is the center point of the angle gradient * start:Start point of angle gradient * end:End point of angle gradient * number:number * rotating:rotating * colors:Color description for gradients * repeating:repeating * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Angle Gradient * center:is the center point of the angle gradient * start:Start point of angle gradient * end:End point of angle gradient * number:number * rotating:rotating * colors:Color description for gradients * repeating:repeating * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ sweepGradient(value: { center: Array; start?: number | string; end?: number | string; rotation?: number | string; colors: Array; repeating?: boolean; }): T; /** * Radial Gradient * center:Center point of radial gradient * radius:Radius of Radial Gradient * colors:Color description for gradients * repeating: Refill * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Radial Gradient * center:Center point of radial gradient * radius:Radius of Radial Gradient * colors:Color description for gradients * repeating: Refill * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Radial Gradient * center:Center point of radial gradient * radius:Radius of Radial Gradient * colors:Color description for gradients * repeating: Refill * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Radial Gradient * center:Center point of radial gradient * radius:Radius of Radial Gradient * colors:Color description for gradients * repeating: Refill * * @param { object } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ radialGradient(value: { center: Array; radius: number | string; colors: Array; repeating?: boolean }): T; /** * Set the motion path of the component * path:Motion path for displacement animation, using the svg path string. * from:Start point of the motion path. The default value is 0.0. * to:End point of the motion path. The default value is 1.0. * rotatable:Whether to follow the path for rotation. * * @param { MotionPathOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set the motion path of the component * path:Motion path for displacement animation, using the svg path string. * from:Start point of the motion path. The default value is 0.0. * to:End point of the motion path. The default value is 1.0. * rotatable:Whether to follow the path for rotation. * * @param { MotionPathOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Set the motion path of the component * path:Motion path for displacement animation, using the svg path string. * from:Start point of the motion path. The default value is 0.0. * to:End point of the motion path. The default value is 1.0. * rotatable:Whether to follow the path for rotation. * * @param { MotionPathOptions } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ motionPath(value: MotionPathOptions): T; /** * Add a shadow effect to the current component * * @param { ShadowOptions | ShadowStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Add a shadow effect to the current component * * @param { ShadowOptions | ShadowStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Add a shadow effect to the current component * * @param { ShadowOptions | ShadowStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Add a shadow effect to the current component * * @param { ShadowOptions | ShadowStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ shadow(value: ShadowOptions | ShadowStyle): T; /** * Add a blendMode effect to the current component * * @param { BlendMode } value - Different hybrid modes * @param { BlendApplyType } [type] - Different blend apply type * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @form * @since 11 */ blendMode(value: BlendMode, type?: BlendApplyType): T; /** * When the parameter is of the Shape type, the current component is cropped according to the specified shape. * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour. * * @param { boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * When the parameter is of the Shape type, the current component is cropped according to the specified shape. * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour. * * @param { boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * When the parameter is of the Shape type, the current component is cropped according to the specified shape. * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour. * * @param { boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * When the parameter is of the Shape type, the current component is cropped according to the specified shape. * When the parameter is of the boolean type, this parameter specifies whether to crop based on the edge contour. * * @param { boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ clip(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): T; /** * Applies a mask of the specified shape to the current assembly. * * @param { CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Applies a mask of the specified shape to the current assembly. * * @param { CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask } value - indicates the shape of the mask. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Applies a mask of the specified shape to the current assembly. * * @param { CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask } value - indicates the shape of the mask. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Applies a mask of the specified shape to the current assembly. * * @param { CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask } value - indicates the shape of the mask. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ mask(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): T; /** * Key. User can set an key to the component to identify it. * * @param { string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 8 * @test */ key(value: string): T; /** * Id. User can set an id to the component to identify it. * * @param { string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Id. User can set an id to the component to identify it. * * @param { string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Id. User can set an id to the component to identify it. * * @param { string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Id. User can set an id to the component to identify it. * * @param { string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ id(value: string): T; /** * geometryTransition * * @param { string } id * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * geometryTransition * * @param { string } id * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * geometryTransition * * @param { string } id * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ geometryTransition(id: string): T; /** * Shared geometry transition * * @param { string } id - geometry transition id * @param { GeometryTransitionOptions } options - Indicates the options of geometry transition. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ geometryTransition(id: string, options?: GeometryTransitionOptions): T; /** * Popup control * * @param { boolean } show * @param { PopupOptions | CustomPopupOptions } popup * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Popup control * * @param { boolean } show * @param { PopupOptions | CustomPopupOptions } popup * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): T; /** * Menu control * * @param { { value: ResourceStr; icon?: ResourceStr; action: () => void }[] | CustomBuilder } content * action: () => void }[] | CustomBuilder } content - Indicates the content of menu. * @param { MenuOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Menu control * * @param { { value: ResourceStr; icon?: ResourceStr; action: () => void }[] | CustomBuilder } content * action: () => void }[] | CustomBuilder } content - Indicates the content of menu. * @param { MenuOptions } options - Indicates the options of menu. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Menu control * * @param { Array | CustomBuilder } content - Indicates the content of menu. * @param { MenuOptions } options - Indicates the options of menu. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bindMenu(content: Array | CustomBuilder, options?: MenuOptions): T; /** * Menu control * * @param { boolean } isShow true means display menu, false means hide menu. * @param { Array | CustomBuilder } content - Indicates the content of menu. * @param { MenuOptions } options - Indicates the options of menu. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ bindMenu(isShow: boolean, content: Array | CustomBuilder, options?: MenuOptions): T; /** * ContextMenu control * * @param { CustomBuilder } content * @param { ResponseType } responseType * @param { ContextMenuOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * ContextMenu control * * @param { CustomBuilder } content - Indicates the content of context menu. * @param { ResponseType } responseType - Indicates response type of context menu. * @param { ContextMenuOptions } options - Indicates the options of context menu. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * ContextMenu control * * @param { CustomBuilder } content - Indicates the content of context menu. * @param { ResponseType } responseType - Indicates response type of context menu. * @param { ContextMenuOptions } options - Indicates the options of context menu. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bindContextMenu(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): T; /** * Bind content cover * * @param { boolean } isShow - true means display content, false means hide content. * @param { CustomBuilder } builder - the content to be displayed. * @param { ModalTransition } type - transition type. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Bind content cover * * @param { boolean } isShow - true means display content, false means hide content. * @param { CustomBuilder } builder - the content to be displayed. * @param { ModalTransition } type - transition type. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bindContentCover(isShow: boolean, builder: CustomBuilder, type?: ModalTransition): T; /** * Bind content cover * * @param { boolean } isShow - true means display content, false means hide content. * @param { CustomBuilder } builder - the content to be displayed. * @param { ContentCoverOptions } options - options of content cover. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Bind content cover * * @param { boolean } isShow - true means display content, false means hide content. * @param { CustomBuilder } builder - the content to be displayed. * @param { ContentCoverOptions } options - options of content cover. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bindContentCover(isShow: boolean, builder: CustomBuilder, options?: ContentCoverOptions): T; /** * Bind sheet * * @param { boolean } isShow - true means display sheet, false means hide sheet. * @param { CustomBuilder } builder - the sheet to be displayed. * @param { SheetOptions } options - options of sheet. * @returns { T } - template type * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Bind sheet * * @param { boolean } isShow - true means display sheet, false means hide sheet. * @param { CustomBuilder } builder - the sheet to be displayed. * @param { SheetOptions } options - options of sheet. * @returns { T } - template type * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ bindSheet(isShow: boolean, builder: CustomBuilder, options?: SheetOptions): T; /** * Sets styles for component state. * * @param { StateStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Sets styles for component state. * * @param { StateStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets styles for component state. * * @param { StateStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets styles for component state. * * @param { StateStyles } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ stateStyles(value: StateStyles): T; /** * id for distribute identification. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * id for distribute identification. * * @param { number } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ restoreId(value: number): T; /** * Trigger a visible area change event. * * @param { Array } ratios * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Trigger a visible area change event. * * @param { Array } ratios * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Trigger a visible area change event. * * @param { Array } ratios * @param { function } event * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onVisibleAreaChange(ratios: Array, event: (isVisible: boolean, currentRatio: number) => void): T; /** * Set the spherical effect of the component. * * @param { number } value - set the degree of spherical effect, value range [0, 1]. * If the value is 0, the component keep same, else the value is 1, component are fully spherical. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @crossplatform * @since 10 */ sphericalEffect(value: number): T; /** * Set the light up effect of the component * * @param { number } value - set the degree to which the component lights up, value range [0, 1]. * The color brightness in the component rendering content area is greater than the value and can be displayed, otherwise it will not be displayed. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @crossplatform * @since 10 */ lightUpEffect(value: number): T; /** * Set the edge pixel stretch effect of the Component. * * @param { PixelStretchEffectOptions } options * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @crossplatform * @since 10 */ pixelStretchEffect(options: PixelStretchEffectOptions): T; /** * Sets hot keys * * @param { string | FunctionKey } value - Character of the combination key. * @param { Array } keys - The modifier keys modify the action of key when the key are pressed at the same time. * @param { function } [action] - Callback function, triggered when the shortcut keyboard is pressed. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets hot keys * * @param { string | FunctionKey } value - Character of the combination key. * @param { Array } keys - The modifier keys modify the action of key when the key are pressed at the same time. * @param { function } [action] - Callback function, triggered when the shortcut keyboard is pressed. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ keyboardShortcut(value: string | FunctionKey, keys: Array, action?: () => void): T; /** * Sets accessibilityGroup * * @param { boolean } value - set group with accessibility * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets accessibilityGroup * * @param { boolean } value - set group with accessibility * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ accessibilityGroup(value: boolean): T; /** * Sets accessibilityText * * @param { string } value - set accessibility text * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets accessibilityText * * @param { string } value - set accessibility text * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ accessibilityText(value: string): T; /** * Sets accessibilityDescription * * @param { string } value - set description of accessibility * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets accessibilityDescription * * @param { string } value - set description of accessibility * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ accessibilityDescription(value: string): T; /** * Sets accessibilityLevel * * @param { string } value - set accessibility level * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets accessibilityLevel * * @param { string } value - set accessibility level * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ accessibilityLevel(value: string): T; /** * Sets accessibilityVirtualNode * * @param { CustomBuilder } builder - set virtual node of accessibility * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ accessibilityVirtualNode(builder: CustomBuilder): T; /** * Sets obscured * * @param { Array } reasons - reasons of obscuration * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets obscured * * @param { Array } reasons - reasons of obscuration * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ obscured(reasons: Array): T; /** * Reuse id is used for identify the reuse type for each custom node. * * @param { string } id - The id for reusable custom node. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Reuse id is used for identify the reuse type for each custom node. * * @param { string } id - The id for reusable custom node. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ reuseId(id: string): T; /** * Sets how content is drawn within nodes duration animation * * @param { RenderFit } fitMode - The render fit mode of content. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sets how content is drawn within nodes duration animation * * @param { RenderFit } fitMode - The render fit mode of content. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ renderFit(fitMode: RenderFit): T; /** * Sets the attribute modifier. * * @param { AttributeModifier } modifier * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ attributeModifier(modifier: AttributeModifier): T; /** * Adds a background dynamic light up effect to the current component. * * @param { BackgroundBrightnessOptions } params - params indicates BackgroundBrightnessOptions * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ backgroundBrightness(params: BackgroundBrightnessOptions): T; /** * When a gesture bound to this component will be accepted, a user-defined callback is triggered to get the result * * @param { function } callback - A callback instance used when a gesture bound to this component will be accepted. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ onGestureJudgeBegin(callback: (gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult): T; /** * Events are monopolized by components. * * @param { boolean } monopolize - indicate the monopoly of events * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ monopolizeEvents(monopolize: boolean): T; } /** * CommonAttribute for ide. * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * CommonAttribute for ide. * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * CommonAttribute for ide. * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * CommonAttribute for ide. * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare class CommonAttribute extends CommonMethod {} /** * CommonInterface for ide. * * @interface CommonInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * CommonInterface for ide. * * @interface CommonInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * CommonInterface for ide. * * @interface CommonInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * CommonInterface for ide. * * @interface CommonInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ interface CommonInterface { /** * Constructor. * * @returns { CommonAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Constructor * * @returns { CommonAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Constructor * * @returns { CommonAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Constructor * * @returns { CommonAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ (): CommonAttribute; } /** * CommonInstance for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * CommonInstance for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * CommonInstance for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * CommonInstance for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const CommonInstance: CommonAttribute; /** * Common for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Common for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Common for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Common for ide. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare const Common: CommonInterface; /** * Defines the CustomBuilder Type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 8 */ /** * Defines the CustomBuilder Type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Defines the CustomBuilder Type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Defines the CustomBuilder Type. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare type CustomBuilder = (() => any) | void; /** * Defines the segment of blur. * The first element in the tuple means fraction. * The range of this value is [0,1]. A value of 1 means opaque and 0 means completely transparent. * The second element means the stop position. * The range of this value is [0,1]. A value of 1 means region ending position and 0 means region starting position. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ declare type FractionStop = [ number, number ]; /** * CommonShapeMethod * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * CommonShapeMethod * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * CommonShapeMethod * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * CommonShapeMethod * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare class CommonShapeMethod extends CommonMethod { /** * constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 7 */ /** * constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 9 * @form */ constructor(); /** * border Color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * border Color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * border Color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * border Color * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ stroke(value: ResourceColor): T; /** * Fill color. * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Fill color. * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Fill color. * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Fill color. * * @param { ResourceColor } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ fill(value: ResourceColor): T; /** * Offset from the start point of the border drawing. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Offset from the start point of the border drawing. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Offset from the start point of the border drawing. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Offset from the start point of the border drawing. * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeDashOffset(value: number | string): T; /** * Path endpoint drawing style. * * @param { LineCapStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Path endpoint drawing style. * * @param { LineCapStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Path endpoint drawing style. * * @param { LineCapStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Path endpoint drawing style. * * @param { LineCapStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeLineCap(value: LineCapStyle): T; /** * Border corner drawing style. * * @param { LineJoinStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Border corner drawing style. * * @param { LineJoinStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Border corner drawing style. * * @param { LineJoinStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Border corner drawing style. * * @param { LineJoinStyle } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeLineJoin(value: LineJoinStyle): T; /** * Limits for drawing acute angles as bevels * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Limits for drawing acute angles as bevels * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Limits for drawing acute angles as bevels * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Limits for drawing acute angles as bevels * * @param { number | string } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeMiterLimit(value: number | string): T; /** * Sets the opacity of the border. * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the opacity of the border. * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the opacity of the border. * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the opacity of the border. * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeOpacity(value: number | string | Resource): T; /** * fill Opacity * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * fill Opacity * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * fill Opacity * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * fill Opacity * * @param { number | string | Resource } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ fillOpacity(value: number | string | Resource): T; /** * Sets the width of the dividing line. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the width of the dividing line. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the width of the dividing line. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the width of the dividing line. * * @param { Length } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeWidth(value: Length): T; /** * Indicates whether to enable anti-aliasing * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Indicates whether to enable anti-aliasing * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Indicates whether to enable anti-aliasing * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Indicates whether to enable anti-aliasing * * @param { boolean } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ antiAlias(value: boolean): T; /** * Sets the gap for the border. * * @param { Array } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Sets the gap for the border. * * @param { Array } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Sets the gap for the border. * * @param { Array } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Sets the gap for the border. * * @param { Array } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ strokeDashArray(value: Array): T; } /** * Linear Gradient Interface * * @interface LinearGradient * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Linear Gradient Interface * * @interface LinearGradient * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Linear Gradient Interface * * @interface LinearGradient * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface LinearGradient { /** * Linear Gradient Angle * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Linear Gradient Angle * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Linear Gradient Angle * * @type { ?(number | string) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ angle?: number | string; /** * Linear Gradient Direction * * @type { ?GradientDirection } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Linear Gradient Direction * * @type { ?GradientDirection } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Linear Gradient Direction * * @type { ?GradientDirection } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ direction?: GradientDirection; /** * Linear Gradient Colors * * @type { Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Linear Gradient Colors * * @type { Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Linear Gradient Colors * * @type { Array } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ colors: Array; /** * Linear Gradient Repeating * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * Linear Gradient Repeating * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Linear Gradient Repeating * * @type { ?boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ repeating?: boolean; } /** * Defines the pixel round property. * * @interface PixelRoundPolicy * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare interface PixelRoundPolicy { /** * start property. * * @type { ?PixelRoundCalcPolicy } * @default PixelRoundCalcPolicy.NO_FORCE_ROUND * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ start?: PixelRoundCalcPolicy; /** * top property. * * @type { ?PixelRoundCalcPolicy } * @default PixelRoundCalcPolicy.NO_FORCE_ROUND * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ top?: PixelRoundCalcPolicy; /** * end property. * * @type { ?PixelRoundCalcPolicy } * @default PixelRoundCalcPolicy.NO_FORCE_ROUND * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ end?: PixelRoundCalcPolicy; /** * bottom property. * * @type { ?PixelRoundCalcPolicy } * @default PixelRoundCalcPolicy.NO_FORCE_ROUND * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ bottom?: PixelRoundCalcPolicy; } /** * Linear Gradient Blur Interface * * @interface LinearGradientBlurOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ declare interface LinearGradientBlurOptions { /** * Percentage of blurring effect. * * @type { FractionStop[] } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ fractionStops: FractionStop[]; /** * Direction of linear gradient blur. * * @type { GradientDirection } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 10 */ direction: GradientDirection; } /** * Sub component border info. * * @interface LayoutBorderInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ declare interface LayoutBorderInfo { /** * Sub component borderWidth info. * * @type { EdgeWidths } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ borderWidth: EdgeWidths; /** * Sub component margin info. * * @type { Margin } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ margin: Margin, /** * Sub component padding info. * * @type { Padding } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ padding: Padding, } /** * Sub component layout info. * * @interface LayoutInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ declare interface LayoutInfo { /** * Sub component position info. * * @type { Position } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ position: Position, /** * Sub component constraint info. * * @type { ConstraintSizeOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ constraint: ConstraintSizeOptions, } /** * Sub component info passed from framework when layout and measure happens. * * @interface LayoutChild * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ declare interface LayoutChild { /** * Sub component name. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ name: string, /** * Sub component id. * * @type { string } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ id: string, /** * Sub component constraint. * * @type { ConstraintSizeOptions } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ constraint: ConstraintSizeOptions, /** * Sub component border info. * * @type { LayoutBorderInfo } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ borderInfo: LayoutBorderInfo, /** * Sub component position. * * @type { Position } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ position: Position, /** * Call this measure method in onMeasure callback to supply sub component size. * * @param { ConstraintSizeOptions } childConstraint * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ measure(childConstraint: ConstraintSizeOptions), /** * Call this layout method in onLayout callback to assign layout info to sub component. * * @param { LayoutInfo } childLayoutInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @form */ layout(childLayoutInfo: LayoutInfo), } /** * Sub component layout info. * * @interface GeometryInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component layout info. * * @interface GeometryInfo * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface GeometryInfo extends SizeResult { /** * Sub component borderWidth info. * * @type { EdgeWidth } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component borderWidth info. * * @type { EdgeWidth } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ borderWidth: EdgeWidth; /** * Sub component margin info. * * @type { Margin } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component margin info. * * @type { Margin } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ margin: Margin, /** * Sub component padding info. * * @type { Padding } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component padding info. * * @type { Padding } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ padding: Padding, } /** * Sub component info passed from framework when layout happens. * * @interface Layoutable * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component info passed from framework when layout happens. * * @interface Layoutable * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface Layoutable { /** * Measurement result of the child component. * * @type { MeasureResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Measurement result of the child component. * * @type { MeasureResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ measureResult: MeasureResult, /** * Call this layout method in onLayout callback to assign layout info to sub component. * * @param { Position } position * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Call this layout method in onLayout callback to assign layout info to sub component. * * @param { Position } position * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ layout(position: Position): void, } /** * Sub component info passed from framework when measure happens. * * @interface Measurable * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component info passed from framework when measure happens. * * @interface Measurable * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface Measurable { /** * Call this measure method in onMeasure callback to supply sub component size. * * @param { ConstraintSizeOptions } childConstraint * @returns { MeasureResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Call this measure method in onMeasure callback to supply sub component size. * * @param { ConstraintSizeOptions } childConstraint * @returns { MeasureResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ measure(constraint: ConstraintSizeOptions) : MeasureResult, } /** * Sub component SizeResult info. * * @interface SizeResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component SizeResult info. * * @interface SizeResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface SizeResult { /** * Width obtained from the measurement result. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Width obtained from the measurement result. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ width: number, /** * Height obtained from the measurement result. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Height obtained from the measurement result. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ height: number, } /** * Sub component MeasureResult info. * * @interface MeasureResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Sub component MeasureResult info. * * @interface MeasureResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface MeasureResult extends SizeResult { } /** * The navigation destination information. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare type NavDestinationInfo = import('../api/@ohos.arkui.observer').default.NavDestinationInfo; /** * UIContext * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare type UIContext = import('../api/@ohos.arkui.UIContext').UIContext; /** * Custom Component * * @extends CommonAttribute * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Custom Component * * @extends CommonAttribute * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Custom Component * * @extends CommonAttribute * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Custom Component * * @extends CommonAttribute * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ declare class CustomComponent extends CommonAttribute { /** * Customize the pop-up content constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Customize the pop-up content constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * Customize the pop-up content constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * Customize the pop-up content constructor. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ build(): void; /** * aboutToAppear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * aboutToAppear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * aboutToAppear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * aboutToAppear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ aboutToAppear?(): void; /** * aboutToDisappear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * aboutToDisappear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @form */ /** * aboutToDisappear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 * @form */ /** * aboutToDisappear Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 * @form */ aboutToDisappear?(): void; /** * aboutToReuse Method * * @param { object } params - Custom component init params. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * aboutToReuse Method * * @param { object } params - Custom component init params. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ aboutToReuse?(params: { [key: string]: unknown }): void; /** * aboutToRecycle Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * aboutToRecycle Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ aboutToRecycle?(): void; /** * Custom component override this method to layout each of its sub components. * * @param { Array } children * @param { ConstraintSizeOptions } constraint * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @useinstead common[CustomComponent]#onPlaceChildren * @form */ onLayout?(children: Array, constraint: ConstraintSizeOptions): void; /** * Custom component override this method to layout each of its sub components. * * @param { GeometryInfo } selfLayoutInfo * @param { Array } children * @param { ConstraintSizeOptions } constraint * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Custom component override this method to layout each of its sub components. * * @param { GeometryInfo } selfLayoutInfo * @param { Array } children * @param { ConstraintSizeOptions } constraint * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onPlaceChildren?(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): void; /** * Custom component override this method to measure each of its sub components. * * @param { Array } children * @param { ConstraintSizeOptions } constraint * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 * @deprecated since 10 * @useinstead common[CustomComponent]#onMeasureSize * @form */ onMeasure?(children: Array, constraint: ConstraintSizeOptions): void; /** * Custom component override this method to measure each of its sub components. * @param { GeometryInfo } selfLayoutInfo * @param { Array } children - indicate the measure child * @param { ConstraintSizeOptions } constraint - indicate child constraint size * @returns { SizeResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Custom component override this method to measure each of its sub components. * @param { GeometryInfo } selfLayoutInfo * @param { Array } children - indicate the measure child * @param { ConstraintSizeOptions } constraint - indicate child constraint size * @returns { SizeResult } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onMeasureSize?(selfLayoutInfo: GeometryInfo, children: Array, constraint: ConstraintSizeOptions): SizeResult; /** * onPageShow Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * onPageShow Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * onPageShow Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onPageShow?(): void; /** * onPageHide Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * onPageHide Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * onPageHide Method * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onPageHide?(): void; /** * onFormRecycle Method, this is only for ArkTS form, if form was marked recyclable by form user, when system memory is low, * it will be recycled after calling this method, you should return a string of params that you wish to be saved, it will be * passed back as params in onFormRecover, in which you can recover the form * * @returns { string } status data of ArkTS form UI, this data will be passed in when recover form later * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ onFormRecycle?(): string; /** * onFormRecover Method, this is only for ArkTS form * * @param { string } statusData - indicate status data of ArkTS form UI, which is acquired by calling onFormRecycle, it is used to recover form * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 * @form */ onFormRecover?(statusData: string): void; /** * onBackPress Method * * @returns { void | boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * onBackPress Method * * @returns { void | boolean } true means that the page itself processes the return logic. * false means that the default return logic is used. * If no value is returned, the default return logic is used. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * onBackPress Method * * @returns { void | boolean } true means that the page itself processes the return logic. * false means that the default return logic is used. * If no value is returned, the default return logic is used. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onBackPress?(): void | boolean; /** * PageTransition Method. * Implement Animation when enter this page or move to other pages. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 9 */ /** * PageTransition Method. * Implement Animation when enter this page or move to other pages. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * PageTransition Method. * Implement Animation when enter this page or move to other pages. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ pageTransition?(): void; /** * Get current UIContext * * @returns { UIContext } The UIContext that the custom component belongs to. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ getUIContext(): UIContext; /** * Queries the navigation destination information. * * @returns { NavDestinationInfo | undefined } The navigation destination information, or undefined if it is not available. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ queryNavDestinationInfo(): NavDestinationInfo | undefined; } /** * View * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 7 */ /** * View * * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 9 * @form */ declare class View { /** * Just use for generate tsbundle * * @param { any } value * @returns { any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 7 */ /** * Just use for generate tsbundle * * @param { any } value * @returns { any } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 9 * @form */ create(value: any): any; } /** * Rect info. * * @interface RectResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Rect info. * * @interface RectResult * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare interface RectResult { /** * x:Horizontal coordinate relative to the component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * x:Horizontal coordinate relative to the component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ x: number; /** * y:Vertical axis coordinate relative to the component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * y:Vertical axis coordinate relative to the component. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ y: number; /** * Get the width of the current textRect. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Get the width of the current textRect. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ width: number; /** * Get the height of the current textRect. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 10 */ /** * Get the height of the current textRect. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ height: number; } /** * CaretOffset info. * * @interface CaretOffset * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface CaretOffset { /** * Get the index of the CaretOffset * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ index: number; /** * Get the x of the relative position. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ x: number; /** * Get the y of the relative position. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 11 */ y: number; } /** * TextContentControllerBase * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * TextContentControllerBase * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare abstract class TextContentControllerBase { /** * Get the index and relative position of the CaretOffset. * * @returns { CaretOffset } index and relative position of the CaretOffset. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ getCaretOffset() : CaretOffset; /** * Get the start and end positions of the text content. * * @returns { RectResult } Text content rect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get the start and end positions of the text content. * * @returns { RectResult } Text content rect. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getTextContentRect() : RectResult; /** * Get the lines number of the text content. * * @returns { number } Text content line count * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 10 */ /** * Get the lines number of the text content. * * @returns { number } Text content line count * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ getTextContentLineCount() : number; } /** * CommonScrollableMethod * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ declare class ScrollableCommonMethod extends CommonMethod { /** * Scrollbar status. * * @param { BarState } barState - Scrollbar status. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ scrollBar(barState: BarState): T; /** * Color of the scrollbar. * * @param { Color | number | string } color - Color of the scrollbar. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ scrollBarColor(color: Color | number | string): T; /** * Width of the scrollbar. * * @param { number | string } value - Width of the scrollbar. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ scrollBarWidth(value: number | string): T; /** * Edge scrolling effect. * * @param { EdgeEffect } value - edge scrolling effect. * @param { EdgeEffectOptions } options - edge scrolling effect options. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): T; /** * Nested scrolling options. * * @param { NestedScrollOptions } value - options for nested scrolling. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ nestedScroll(value: NestedScrollOptions): T; /** * Whether to support scroll gestures by finger or mouse. * * @param { boolean } value - Whether to support scroll gestures by finger or mouse. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ enableScrollInteraction(value: boolean): T; /** * Friction coefficient. * * @param { number | Resource } value - friction coefficient. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ friction(value: number | Resource): T; /** * Called when the scrollable scrolls. * * @param { function } event - callback of scrollable, * scrollOffset is offset per frame scrolling, ScrollState is current scroll state. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onScroll(event: (scrollOffset: number, scrollState: ScrollState) => void): T; /** * Called when the scrollable reaches the start position. * * @param { function } event - Callback function, triggered when the scrollable reaches the start position. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onReachStart(event: () => void): T; /** * Called when the scrollable reaches the end position. * * @param { function } event - Callback function, triggered when the scrollable reaches the end position. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onReachEnd(event: () => void): T; /** * Called when the scrollable starts scrolling. * * @param { function } event - Callback function, triggered when the scrollable starts scrolling. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onScrollStart(event: () => void): T; /** * Called when the scrollable stops scrolling. * * @param { function } event - Callback function, triggered when the scrollable stops scrolling. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ onScrollStop(event: () => void): T; /** * Limit the max speed when fling. * * @param { number } speedLimit - Max fling speed, the minimum value is 0, the maximum value is not limited. * The unit is vp/s. * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 11 */ flingSpeedLimit(speedLimit: number): T; } declare module "SpecialEvent" { module "SpecialEvent" { // @ts-ignore export { TouchObject, KeyEvent, MouseEvent }; } } declare module "AnimateToParam" { module "AnimateToParam" { // @ts-ignore export type { AnimateParam, KeyframeAnimateParam, KeyframeState }; } } declare module 'DragControllerParam' { module 'DragControllerParam' { // @ts-ignore export type { CustomBuilder, DragItemInfo, DragEvent, DragPreviewOptions }; } } declare module 'ExpectedFrameRateRange' { module 'ExpectedFrameRateRange' { // @ts-ignore export type { ExpectedFrameRateRange }; } } /** * Define EdgeEffect Options. * * @interface EdgeEffectOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface EdgeEffectOptions { /** * Enable Sliding effect when component does not full screen. * * @type { boolean } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ alwaysEnabled: boolean; } /** * Define BackgroundBrightness Options. * * @interface BackgroundBrightnessOptions * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ declare interface BackgroundBrightnessOptions { /** * Rate represents the rate at which lightUpDegree * decreases with increasing pixel brightness. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ rate: number; /** * LightUpDegree represents the degree of brightness * of the rgb value changes when its brightness * is 0. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ lightUpDegree: number; } /** * PointLightStyle info * * @interface PointLightStyle * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ declare interface PointLightStyle { /** * Defines the PointLight light intensity and position. * * @type { ?LightSource } * @default undefined * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ lightSource?: LightSource; /** * Defines the PointLight illuminated type. * * @type { ?IlluminatedType } * @default IlluminatedType.NONE * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ illuminated?: IlluminatedType; /** * Defines the PointLight bloom. * * @type { ?number } * @default 0 * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ bloom?: number; } /** * LightSource info * * @interface LightSource * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ declare interface LightSource { /** * Defines the PointLight light positionX. * * @type { Dimension } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ positionX: Dimension; /** * Defines the PointLight light positionX. * * @type { Dimension } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ positionY: Dimension; /** * Defines the PointLight light positionX. * * @type { Dimension } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ positionZ: Dimension; /** * Defines the PointLight light intensity. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @systemapi * @since 11 */ intensity: number; } /** * Defining wrapBuilder function. * @param { function } builder * @returns { WrappedBuilder } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare function wrapBuilder(builder: (...args: Args) => void): WrappedBuilder; /** * Defines the WrappedBuilder class. * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare class WrappedBuilder { /** * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ builder: (...args: Args) => void; /** * @param { function } builder * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ constructor(builder: (...args: Args) => void); } declare module "wrappedBuilderObject" { module "wrappedBuilderObject" { // @ts-ignore export { WrappedBuilder }; } } /** * Defines the overall animation parameters of the keyframe animation. * * @interface KeyframeAnimateParam * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface KeyframeAnimateParam { /** * Animation delay time, in ms. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ delay?: number; /** * Animation iterations. * * @type { ?number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ iterations?: number; /** * Callback invoked when the whole keyframe animation is complete. * * @type { ?function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ onFinish?: () => void; } /** * Defines a keyframe state. * * @interface KeyframeState * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ declare interface KeyframeState { /** * Animation duration of this keyframe, in ms. * * @type { number } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ duration: number; /** * Animation curve of this keyframe. * * @type { ?(Curve | string | ICurve) } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ curve?: Curve | string | ICurve; /** * The closure function to specify the terminating state of this keyframe. * * @type { function } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @since 11 */ event: () => void; } declare module 'touchEvent'{ module 'touchEvent' { // @ts-ignore export { TouchEvent }; } }