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 * @file 18 * @kit ArkUI 19 */ 20 21/** 22 * Defines the hyperlink interface. 23 * 24 * @interface HyperlinkInterface 25 * @syscap SystemCapability.ArkUI.ArkUI.Full 26 * @since 7 27 */ 28/** 29 * Defines the hyperlink interface. 30 * 31 * @interface HyperlinkInterface 32 * @syscap SystemCapability.ArkUI.ArkUI.Full 33 * @atomicservice 34 * @since 11 35 */ 36interface HyperlinkInterface { 37 /** 38 * Return to get Hyperlink. 39 * adress: Web page redirected by the hyperlink component. 40 * content: Hyperlinks in the hyperlink component display text. 41 * 42 * @param { string | Resource } address 43 * @param { string | Resource } content 44 * @returns { HyperlinkAttribute } 45 * @syscap SystemCapability.ArkUI.ArkUI.Full 46 * @since 7 47 */ 48 /** 49 * Return to get Hyperlink. 50 * adress: Web page redirected by the hyperlink component. 51 * content: Hyperlinks in the hyperlink component display text. 52 * 53 * @param { string | Resource } address 54 * @param { string | Resource } content 55 * @returns { HyperlinkAttribute } 56 * @syscap SystemCapability.ArkUI.ArkUI.Full 57 * @atomicservice 58 * @since 11 59 */ 60 (address: string | Resource, content?: string | Resource): HyperlinkAttribute; 61} 62 63/** 64 * Defines the hyperlink attribute functions 65 * 66 * @extends CommonMethod<HyperlinkAttribute> 67 * @syscap SystemCapability.ArkUI.ArkUI.Full 68 * @since 7 69 */ 70/** 71 * Defines the hyperlink attribute functions 72 * 73 * @extends CommonMethod<HyperlinkAttribute> 74 * @syscap SystemCapability.ArkUI.ArkUI.Full 75 * @atomicservice 76 * @since 11 77 */ 78declare class HyperlinkAttribute extends CommonMethod<HyperlinkAttribute> { 79 /** 80 * Set Color 81 * 82 * @param { Color | number | string | Resource } value 83 * @returns { HyperlinkAttribute } 84 * @syscap SystemCapability.ArkUI.ArkUI.Full 85 * @since 7 86 */ 87 /** 88 * Set Color 89 * 90 * @param { Color | number | string | Resource } value 91 * @returns { HyperlinkAttribute } 92 * @syscap SystemCapability.ArkUI.ArkUI.Full 93 * @atomicservice 94 * @since 11 95 */ 96 color(value: Color | number | string | Resource): HyperlinkAttribute; 97} 98 99/** 100 * Defines Hyperlink Component. 101 * 102 * @syscap SystemCapability.ArkUI.ArkUI.Full 103 * @since 7 104 */ 105/** 106 * Defines Hyperlink Component. 107 * 108 * @syscap SystemCapability.ArkUI.ArkUI.Full 109 * @atomicservice 110 * @since 11 111 */ 112declare const Hyperlink: HyperlinkInterface; 113 114/** 115 * Defines Hyperlink Component instance. 116 * 117 * @syscap SystemCapability.ArkUI.ArkUI.Full 118 * @since 7 119 */ 120/** 121 * Defines Hyperlink Component instance. 122 * 123 * @syscap SystemCapability.ArkUI.ArkUI.Full 124 * @atomicservice 125 * @since 11 126 */ 127declare const HyperlinkInterface: HyperlinkAttribute; 128