1/* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * Defines the hyperlink interface. 18 * 19 * @interface HyperlinkInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23interface HyperlinkInterface { 24 /** 25 * Return to get Hyperlink. 26 * adress: Web page redirected by the hyperlink component. 27 * content: Hyperlinks in the hyperlink component display text. 28 * 29 * @param { string | Resource } address 30 * @param { string | Resource } content 31 * @returns { HyperlinkAttribute } 32 * @syscap SystemCapability.ArkUI.ArkUI.Full 33 * @since 7 34 */ 35 (address: string | Resource, content?: string | Resource): HyperlinkAttribute; 36} 37 38/** 39 * Defines the hyperlink attribute functions 40 * 41 * @extends CommonMethod 42 * @syscap SystemCapability.ArkUI.ArkUI.Full 43 * @since 7 44 */ 45declare class HyperlinkAttribute extends CommonMethod<HyperlinkAttribute> { 46 /** 47 * Set Color 48 * 49 * @param { Color | number | string | Resource } value 50 * @returns { HyperlinkAttribute } 51 * @syscap SystemCapability.ArkUI.ArkUI.Full 52 * @since 7 53 */ 54 color(value: Color | number | string | Resource): HyperlinkAttribute; 55} 56 57/** 58 * Defines Hyperlink Component. 59 * 60 * @syscap SystemCapability.ArkUI.ArkUI.Full 61 * @since 7 62 */ 63declare const Hyperlink: HyperlinkInterface; 64 65/** 66 * Defines Hyperlink Component instance. 67 * 68 * @syscap SystemCapability.ArkUI.ArkUI.Full 69 * @since 7 70 */ 71declare const HyperlinkInterface: HyperlinkAttribute; 72