161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * Defines the hyperlink interface. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @interface HyperlinkInterface 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 7 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * Defines the hyperlink interface. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @interface HyperlinkInterface 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @atomicservice 3461847f8eSopenharmony_ci * @since 11 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ciinterface HyperlinkInterface { 3761847f8eSopenharmony_ci /** 3861847f8eSopenharmony_ci * Return to get Hyperlink. 3961847f8eSopenharmony_ci * adress: Web page redirected by the hyperlink component. 4061847f8eSopenharmony_ci * content: Hyperlinks in the hyperlink component display text. 4161847f8eSopenharmony_ci * 4261847f8eSopenharmony_ci * @param { string | Resource } address 4361847f8eSopenharmony_ci * @param { string | Resource } content 4461847f8eSopenharmony_ci * @returns { HyperlinkAttribute } 4561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4661847f8eSopenharmony_ci * @since 7 4761847f8eSopenharmony_ci */ 4861847f8eSopenharmony_ci /** 4961847f8eSopenharmony_ci * Return to get Hyperlink. 5061847f8eSopenharmony_ci * adress: Web page redirected by the hyperlink component. 5161847f8eSopenharmony_ci * content: Hyperlinks in the hyperlink component display text. 5261847f8eSopenharmony_ci * 5361847f8eSopenharmony_ci * @param { string | Resource } address 5461847f8eSopenharmony_ci * @param { string | Resource } content 5561847f8eSopenharmony_ci * @returns { HyperlinkAttribute } 5661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5761847f8eSopenharmony_ci * @atomicservice 5861847f8eSopenharmony_ci * @since 11 5961847f8eSopenharmony_ci */ 6061847f8eSopenharmony_ci (address: string | Resource, content?: string | Resource): HyperlinkAttribute; 6161847f8eSopenharmony_ci} 6261847f8eSopenharmony_ci 6361847f8eSopenharmony_ci/** 6461847f8eSopenharmony_ci * Defines the hyperlink attribute functions 6561847f8eSopenharmony_ci * 6661847f8eSopenharmony_ci * @extends CommonMethod<HyperlinkAttribute> 6761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6861847f8eSopenharmony_ci * @since 7 6961847f8eSopenharmony_ci */ 7061847f8eSopenharmony_ci/** 7161847f8eSopenharmony_ci * Defines the hyperlink attribute functions 7261847f8eSopenharmony_ci * 7361847f8eSopenharmony_ci * @extends CommonMethod<HyperlinkAttribute> 7461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7561847f8eSopenharmony_ci * @atomicservice 7661847f8eSopenharmony_ci * @since 11 7761847f8eSopenharmony_ci */ 7861847f8eSopenharmony_cideclare class HyperlinkAttribute extends CommonMethod<HyperlinkAttribute> { 7961847f8eSopenharmony_ci /** 8061847f8eSopenharmony_ci * Set Color 8161847f8eSopenharmony_ci * 8261847f8eSopenharmony_ci * @param { Color | number | string | Resource } value 8361847f8eSopenharmony_ci * @returns { HyperlinkAttribute } 8461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8561847f8eSopenharmony_ci * @since 7 8661847f8eSopenharmony_ci */ 8761847f8eSopenharmony_ci /** 8861847f8eSopenharmony_ci * Set Color 8961847f8eSopenharmony_ci * 9061847f8eSopenharmony_ci * @param { Color | number | string | Resource } value 9161847f8eSopenharmony_ci * @returns { HyperlinkAttribute } 9261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9361847f8eSopenharmony_ci * @atomicservice 9461847f8eSopenharmony_ci * @since 11 9561847f8eSopenharmony_ci */ 9661847f8eSopenharmony_ci color(value: Color | number | string | Resource): HyperlinkAttribute; 9761847f8eSopenharmony_ci} 9861847f8eSopenharmony_ci 9961847f8eSopenharmony_ci/** 10061847f8eSopenharmony_ci * Defines Hyperlink Component. 10161847f8eSopenharmony_ci * 10261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10361847f8eSopenharmony_ci * @since 7 10461847f8eSopenharmony_ci */ 10561847f8eSopenharmony_ci/** 10661847f8eSopenharmony_ci * Defines Hyperlink Component. 10761847f8eSopenharmony_ci * 10861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10961847f8eSopenharmony_ci * @atomicservice 11061847f8eSopenharmony_ci * @since 11 11161847f8eSopenharmony_ci */ 11261847f8eSopenharmony_cideclare const Hyperlink: HyperlinkInterface; 11361847f8eSopenharmony_ci 11461847f8eSopenharmony_ci/** 11561847f8eSopenharmony_ci * Defines Hyperlink Component instance. 11661847f8eSopenharmony_ci * 11761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11861847f8eSopenharmony_ci * @since 7 11961847f8eSopenharmony_ci */ 12061847f8eSopenharmony_ci/** 12161847f8eSopenharmony_ci * Defines Hyperlink Component instance. 12261847f8eSopenharmony_ci * 12361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12461847f8eSopenharmony_ci * @atomicservice 12561847f8eSopenharmony_ci * @since 11 12661847f8eSopenharmony_ci */ 12761847f8eSopenharmony_cideclare const HyperlinkInterface: HyperlinkAttribute; 128