/* * Copyright (c) 2021 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. */ /** * @file * @kit ArkUI */ /*** if arkts 1.2 */ import { Resource } from './../../../api/global/resource' import { CommonMethod } from './common' import { Color } from './enums' /*** endif */ /** * Defines the hyperlink interface. * * @interface HyperlinkInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the hyperlink interface. * * @interface HyperlinkInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Defines the hyperlink interface. * * @interface HyperlinkInterface * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.1&1.2 */ interface HyperlinkInterface { /** * Return to get Hyperlink. * adress: Web page redirected by the hyperlink component. * content: Hyperlinks in the hyperlink component display text. * * @param { string | Resource } address * @param { string | Resource } content * @returns { HyperlinkAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Return to get Hyperlink. * adress: Web page redirected by the hyperlink component. * content: Hyperlinks in the hyperlink component display text. * * @param { string | Resource } address * @param { string | Resource } content * @returns { HyperlinkAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Return to get Hyperlink. * adress: Web page redirected by the hyperlink component. * content: Hyperlinks in the hyperlink component display text. * * @param { string | Resource } address * @param { string | Resource } content * @returns { HyperlinkAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.1&1.2 */ (address: string | Resource, content?: string | Resource): HyperlinkAttribute; } /** * Defines the hyperlink attribute functions * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines the hyperlink attribute functions * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Defines the hyperlink attribute functions * * @extends CommonMethod * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.1&1.2 */ declare class HyperlinkAttribute extends CommonMethod { /** * Set Color * * @param { Color | number | string | Resource } value * @returns { HyperlinkAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Set Color * * @param { Color | number | string | Resource } value * @returns { HyperlinkAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Set Color * * @param { Color | number | string | Resource } value * @returns { HyperlinkAttribute } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 * @arkts 1.1&1.2 */ color(value: Color | number | string | Resource): HyperlinkAttribute; } /** * Defines Hyperlink Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Hyperlink Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Defines Hyperlink Component. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ declare const Hyperlink: HyperlinkInterface; /** * Defines Hyperlink Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @since 7 */ /** * Defines Hyperlink Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @atomicservice * @since 11 */ /** * Defines Hyperlink Component instance. * * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice * @since 20 */ declare const HyperlinkInterface: HyperlinkAttribute;