• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/*** if arkts 1.2 */
22import { Resource } from './../../../api/global/resource'
23import { CommonMethod } from './common'
24import { Color } from './enums'
25/*** endif */
26
27/**
28 * Defines the hyperlink interface.
29 *
30 * @interface HyperlinkInterface
31 * @syscap SystemCapability.ArkUI.ArkUI.Full
32 * @since 7
33 */
34/**
35 * Defines the hyperlink interface.
36 *
37 * @interface HyperlinkInterface
38 * @syscap SystemCapability.ArkUI.ArkUI.Full
39 * @atomicservice
40 * @since 11
41 */
42/**
43 * Defines the hyperlink interface.
44 *
45 * @interface HyperlinkInterface
46 * @syscap SystemCapability.ArkUI.ArkUI.Full
47 * @crossplatform
48 * @atomicservice
49 * @since 20
50 * @arkts 1.1&1.2
51 */
52interface HyperlinkInterface {
53  /**
54   * Return to get Hyperlink.
55   * adress: Web page redirected by the hyperlink component.
56   * content: Hyperlinks in the hyperlink component display text.
57   *
58   * @param { string | Resource } address
59   * @param { string | Resource } content
60   * @returns { HyperlinkAttribute }
61   * @syscap SystemCapability.ArkUI.ArkUI.Full
62   * @since 7
63   */
64  /**
65   * Return to get Hyperlink.
66   * adress: Web page redirected by the hyperlink component.
67   * content: Hyperlinks in the hyperlink component display text.
68   *
69   * @param { string | Resource } address
70   * @param { string | Resource } content
71   * @returns { HyperlinkAttribute }
72   * @syscap SystemCapability.ArkUI.ArkUI.Full
73   * @atomicservice
74   * @since 11
75   */
76  /**
77   * Return to get Hyperlink.
78   * adress: Web page redirected by the hyperlink component.
79   * content: Hyperlinks in the hyperlink component display text.
80   *
81   * @param { string | Resource } address
82   * @param { string | Resource } content
83   * @returns { HyperlinkAttribute }
84   * @syscap SystemCapability.ArkUI.ArkUI.Full
85   * @crossplatform
86   * @atomicservice
87   * @since 20
88   * @arkts 1.1&1.2
89   */
90  (address: string | Resource, content?: string | Resource): HyperlinkAttribute;
91}
92
93/**
94 * Defines the hyperlink attribute functions
95 *
96 * @extends CommonMethod<HyperlinkAttribute>
97 * @syscap SystemCapability.ArkUI.ArkUI.Full
98 * @since 7
99 */
100/**
101 * Defines the hyperlink attribute functions
102 *
103 * @extends CommonMethod<HyperlinkAttribute>
104 * @syscap SystemCapability.ArkUI.ArkUI.Full
105 * @atomicservice
106 * @since 11
107 */
108/**
109 * Defines the hyperlink attribute functions
110 *
111 * @extends CommonMethod<HyperlinkAttribute>
112 * @syscap SystemCapability.ArkUI.ArkUI.Full
113 * @crossplatform
114 * @atomicservice
115 * @since 20
116 * @arkts 1.1&1.2
117 */
118declare class HyperlinkAttribute extends CommonMethod<HyperlinkAttribute> {
119  /**
120   * Set Color
121   *
122   * @param { Color | number | string | Resource } value
123   * @returns { HyperlinkAttribute }
124   * @syscap SystemCapability.ArkUI.ArkUI.Full
125   * @since 7
126   */
127  /**
128   * Set Color
129   *
130   * @param { Color | number | string | Resource } value
131   * @returns { HyperlinkAttribute }
132   * @syscap SystemCapability.ArkUI.ArkUI.Full
133   * @atomicservice
134   * @since 11
135   */
136  /**
137   * Set Color
138   *
139   * @param { Color | number | string | Resource } value
140   * @returns { HyperlinkAttribute }
141   * @syscap SystemCapability.ArkUI.ArkUI.Full
142   * @crossplatform
143   * @atomicservice
144   * @since 20
145   * @arkts 1.1&1.2
146   */
147  color(value: Color | number | string | Resource): HyperlinkAttribute;
148}
149
150/**
151 * Defines Hyperlink Component.
152 *
153 * @syscap SystemCapability.ArkUI.ArkUI.Full
154 * @since 7
155 */
156/**
157 * Defines Hyperlink Component.
158 *
159 * @syscap SystemCapability.ArkUI.ArkUI.Full
160 * @atomicservice
161 * @since 11
162 */
163/**
164 * Defines Hyperlink Component.
165 *
166 * @syscap SystemCapability.ArkUI.ArkUI.Full
167 * @crossplatform
168 * @atomicservice
169 * @since 20
170 */
171declare const Hyperlink: HyperlinkInterface;
172
173/**
174 * Defines Hyperlink Component instance.
175 *
176 * @syscap SystemCapability.ArkUI.ArkUI.Full
177 * @since 7
178 */
179/**
180 * Defines Hyperlink Component instance.
181 *
182 * @syscap SystemCapability.ArkUI.ArkUI.Full
183 * @atomicservice
184 * @since 11
185 */
186/**
187 * Defines Hyperlink Component instance.
188 *
189 * @syscap SystemCapability.ArkUI.ArkUI.Full
190 * @crossplatform
191 * @atomicservice
192 * @since 20
193 */
194declare const HyperlinkInterface: HyperlinkAttribute;
195