161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021-2023 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 * Provides an interface for generating QR codes. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @interface QRCodeInterface 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 7 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * Provides an interface for generating QR codes. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @interface QRCodeInterface 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @form 3461847f8eSopenharmony_ci * @since 9 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * Provides an interface for generating QR codes. 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @interface QRCodeInterface 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @form 4361847f8eSopenharmony_ci * @since 10 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_ci/** 4661847f8eSopenharmony_ci * Provides an interface for generating QR codes. 4761847f8eSopenharmony_ci * 4861847f8eSopenharmony_ci * @interface QRCodeInterface 4961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5061847f8eSopenharmony_ci * @crossplatform 5161847f8eSopenharmony_ci * @form 5261847f8eSopenharmony_ci * @atomicservice 5361847f8eSopenharmony_ci * @since 11 5461847f8eSopenharmony_ci */ 5561847f8eSopenharmony_ciinterface QRCodeInterface { 5661847f8eSopenharmony_ci /** 5761847f8eSopenharmony_ci * Called when a QR code is set. 5861847f8eSopenharmony_ci * 5961847f8eSopenharmony_ci * @param { string } value 6061847f8eSopenharmony_ci * @returns { QRCodeAttribute } 6161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6261847f8eSopenharmony_ci * @since 7 6361847f8eSopenharmony_ci */ 6461847f8eSopenharmony_ci /** 6561847f8eSopenharmony_ci * Called when a QR code is set. 6661847f8eSopenharmony_ci * 6761847f8eSopenharmony_ci * @param { string } value 6861847f8eSopenharmony_ci * @returns { QRCodeAttribute } 6961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7061847f8eSopenharmony_ci * @form 7161847f8eSopenharmony_ci * @since 9 7261847f8eSopenharmony_ci */ 7361847f8eSopenharmony_ci /** 7461847f8eSopenharmony_ci * Called when a QR code is set. 7561847f8eSopenharmony_ci * 7661847f8eSopenharmony_ci * @param { string } value 7761847f8eSopenharmony_ci * @returns { QRCodeAttribute } 7861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7961847f8eSopenharmony_ci * @crossplatform 8061847f8eSopenharmony_ci * @form 8161847f8eSopenharmony_ci * @since 10 8261847f8eSopenharmony_ci */ 8361847f8eSopenharmony_ci /** 8461847f8eSopenharmony_ci * Called when a QR code is set. 8561847f8eSopenharmony_ci * 8661847f8eSopenharmony_ci * @param { string } value 8761847f8eSopenharmony_ci * @returns { QRCodeAttribute } 8861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8961847f8eSopenharmony_ci * @crossplatform 9061847f8eSopenharmony_ci * @form 9161847f8eSopenharmony_ci * @atomicservice 9261847f8eSopenharmony_ci * @since 11 9361847f8eSopenharmony_ci */ 9461847f8eSopenharmony_ci (value: string): QRCodeAttribute; 9561847f8eSopenharmony_ci} 9661847f8eSopenharmony_ci 9761847f8eSopenharmony_ci/** 9861847f8eSopenharmony_ci * Defines the qrcode attribute functions. 9961847f8eSopenharmony_ci * 10061847f8eSopenharmony_ci * @extends CommonMethod<QRCodeAttribute> 10161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10261847f8eSopenharmony_ci * @since 7 10361847f8eSopenharmony_ci */ 10461847f8eSopenharmony_ci/** 10561847f8eSopenharmony_ci * Defines the qrcode attribute functions. 10661847f8eSopenharmony_ci * 10761847f8eSopenharmony_ci * @extends CommonMethod<QRCodeAttribute> 10861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10961847f8eSopenharmony_ci * @form 11061847f8eSopenharmony_ci * @since 9 11161847f8eSopenharmony_ci */ 11261847f8eSopenharmony_ci/** 11361847f8eSopenharmony_ci * Defines the qrcode attribute functions. 11461847f8eSopenharmony_ci * 11561847f8eSopenharmony_ci * @extends CommonMethod<QRCodeAttribute> 11661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11761847f8eSopenharmony_ci * @crossplatform 11861847f8eSopenharmony_ci * @form 11961847f8eSopenharmony_ci * @since 10 12061847f8eSopenharmony_ci */ 12161847f8eSopenharmony_ci/** 12261847f8eSopenharmony_ci * Defines the qrcode attribute functions. 12361847f8eSopenharmony_ci * 12461847f8eSopenharmony_ci * @extends CommonMethod<QRCodeAttribute> 12561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12661847f8eSopenharmony_ci * @crossplatform 12761847f8eSopenharmony_ci * @form 12861847f8eSopenharmony_ci * @atomicservice 12961847f8eSopenharmony_ci * @since 11 13061847f8eSopenharmony_ci */ 13161847f8eSopenharmony_cideclare class QRCodeAttribute extends CommonMethod<QRCodeAttribute> { 13261847f8eSopenharmony_ci /** 13361847f8eSopenharmony_ci * Called when the QR code color is set. 13461847f8eSopenharmony_ci * 13561847f8eSopenharmony_ci * @param { ResourceColor } value 13661847f8eSopenharmony_ci * @returns { QRCodeAttribute } 13761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13861847f8eSopenharmony_ci * @since 7 13961847f8eSopenharmony_ci */ 14061847f8eSopenharmony_ci /** 14161847f8eSopenharmony_ci * Called when the QR code color is set. 14261847f8eSopenharmony_ci * 14361847f8eSopenharmony_ci * @param { ResourceColor } value 14461847f8eSopenharmony_ci * @returns { QRCodeAttribute } 14561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14661847f8eSopenharmony_ci * @form 14761847f8eSopenharmony_ci * @since 9 14861847f8eSopenharmony_ci */ 14961847f8eSopenharmony_ci /** 15061847f8eSopenharmony_ci * Called when the QR code color is set. 15161847f8eSopenharmony_ci * 15261847f8eSopenharmony_ci * @param { ResourceColor } value 15361847f8eSopenharmony_ci * @returns { QRCodeAttribute } 15461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15561847f8eSopenharmony_ci * @crossplatform 15661847f8eSopenharmony_ci * @form 15761847f8eSopenharmony_ci * @since 10 15861847f8eSopenharmony_ci */ 15961847f8eSopenharmony_ci /** 16061847f8eSopenharmony_ci * Called when the QR code color is set. 16161847f8eSopenharmony_ci * 16261847f8eSopenharmony_ci * @param { ResourceColor } value 16361847f8eSopenharmony_ci * @returns { QRCodeAttribute } 16461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16561847f8eSopenharmony_ci * @crossplatform 16661847f8eSopenharmony_ci * @form 16761847f8eSopenharmony_ci * @atomicservice 16861847f8eSopenharmony_ci * @since 11 16961847f8eSopenharmony_ci */ 17061847f8eSopenharmony_ci color(value: ResourceColor): QRCodeAttribute; 17161847f8eSopenharmony_ci 17261847f8eSopenharmony_ci /** 17361847f8eSopenharmony_ci * Called when setting the QR code background color. 17461847f8eSopenharmony_ci * 17561847f8eSopenharmony_ci * @param { ResourceColor } value 17661847f8eSopenharmony_ci * @returns { QRCodeAttribute } 17761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17861847f8eSopenharmony_ci * @since 7 17961847f8eSopenharmony_ci */ 18061847f8eSopenharmony_ci /** 18161847f8eSopenharmony_ci * Called when setting the QR code background color. 18261847f8eSopenharmony_ci * 18361847f8eSopenharmony_ci * @param { ResourceColor } value 18461847f8eSopenharmony_ci * @returns { QRCodeAttribute } 18561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18661847f8eSopenharmony_ci * @form 18761847f8eSopenharmony_ci * @since 9 18861847f8eSopenharmony_ci */ 18961847f8eSopenharmony_ci /** 19061847f8eSopenharmony_ci * Called when setting the QR code background color. 19161847f8eSopenharmony_ci * 19261847f8eSopenharmony_ci * @param { ResourceColor } value 19361847f8eSopenharmony_ci * @returns { QRCodeAttribute } 19461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19561847f8eSopenharmony_ci * @crossplatform 19661847f8eSopenharmony_ci * @form 19761847f8eSopenharmony_ci * @since 10 19861847f8eSopenharmony_ci */ 19961847f8eSopenharmony_ci /** 20061847f8eSopenharmony_ci * Called when setting the QR code background color. 20161847f8eSopenharmony_ci * 20261847f8eSopenharmony_ci * @param { ResourceColor } value 20361847f8eSopenharmony_ci * @returns { QRCodeAttribute } 20461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20561847f8eSopenharmony_ci * @crossplatform 20661847f8eSopenharmony_ci * @form 20761847f8eSopenharmony_ci * @atomicservice 20861847f8eSopenharmony_ci * @since 11 20961847f8eSopenharmony_ci */ 21061847f8eSopenharmony_ci backgroundColor(value: ResourceColor): QRCodeAttribute; 21161847f8eSopenharmony_ci 21261847f8eSopenharmony_ci /** 21361847f8eSopenharmony_ci * Set the opacity of the QR code content color. 21461847f8eSopenharmony_ci * @param { number | Resource } value - indicates the opacity of the QR code content color. The value is between 0 and 1, with a default value of 1. 21561847f8eSopenharmony_ci * @returns { QRCodeAttribute } the attribute of the QR code 21661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21761847f8eSopenharmony_ci * @crossplatform 21861847f8eSopenharmony_ci * @since 11 21961847f8eSopenharmony_ci */ 22061847f8eSopenharmony_ci /** 22161847f8eSopenharmony_ci * Set the opacity of the QR code content color. 22261847f8eSopenharmony_ci * @param { number | Resource } value - indicates the opacity of the QR code content color. The value is between 0 and 1, with a default value of 1. 22361847f8eSopenharmony_ci * @returns { QRCodeAttribute } the attribute of the QR code 22461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22561847f8eSopenharmony_ci * @crossplatform 22661847f8eSopenharmony_ci * @atomicservice 22761847f8eSopenharmony_ci * @since 12 22861847f8eSopenharmony_ci */ 22961847f8eSopenharmony_ci contentOpacity(value: number | Resource): QRCodeAttribute; 23061847f8eSopenharmony_ci} 23161847f8eSopenharmony_ci 23261847f8eSopenharmony_ci/** 23361847f8eSopenharmony_ci * Defines QRCode Component. 23461847f8eSopenharmony_ci * 23561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23661847f8eSopenharmony_ci * @since 7 23761847f8eSopenharmony_ci */ 23861847f8eSopenharmony_ci/** 23961847f8eSopenharmony_ci * Defines QRCode Component. 24061847f8eSopenharmony_ci * 24161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24261847f8eSopenharmony_ci * @form 24361847f8eSopenharmony_ci * @since 9 24461847f8eSopenharmony_ci */ 24561847f8eSopenharmony_ci/** 24661847f8eSopenharmony_ci * Defines QRCode Component. 24761847f8eSopenharmony_ci * 24861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24961847f8eSopenharmony_ci * @crossplatform 25061847f8eSopenharmony_ci * @form 25161847f8eSopenharmony_ci * @since 10 25261847f8eSopenharmony_ci */ 25361847f8eSopenharmony_ci/** 25461847f8eSopenharmony_ci * Defines QRCode Component. 25561847f8eSopenharmony_ci * 25661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25761847f8eSopenharmony_ci * @crossplatform 25861847f8eSopenharmony_ci * @form 25961847f8eSopenharmony_ci * @atomicservice 26061847f8eSopenharmony_ci * @since 11 26161847f8eSopenharmony_ci */ 26261847f8eSopenharmony_cideclare const QRCode: QRCodeInterface; 26361847f8eSopenharmony_ci 26461847f8eSopenharmony_ci/** 26561847f8eSopenharmony_ci * Defines QRCode Component instance. 26661847f8eSopenharmony_ci * 26761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26861847f8eSopenharmony_ci * @since 7 26961847f8eSopenharmony_ci */ 27061847f8eSopenharmony_ci/** 27161847f8eSopenharmony_ci * Defines QRCode Component instance. 27261847f8eSopenharmony_ci * 27361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27461847f8eSopenharmony_ci * @form 27561847f8eSopenharmony_ci * @since 9 27661847f8eSopenharmony_ci */ 27761847f8eSopenharmony_ci/** 27861847f8eSopenharmony_ci * Defines QRCode Component instance. 27961847f8eSopenharmony_ci * 28061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28161847f8eSopenharmony_ci * @crossplatform 28261847f8eSopenharmony_ci * @form 28361847f8eSopenharmony_ci * @since 10 28461847f8eSopenharmony_ci */ 28561847f8eSopenharmony_ci/** 28661847f8eSopenharmony_ci * Defines QRCode Component instance. 28761847f8eSopenharmony_ci * 28861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28961847f8eSopenharmony_ci * @crossplatform 29061847f8eSopenharmony_ci * @form 29161847f8eSopenharmony_ci * @atomicservice 29261847f8eSopenharmony_ci * @since 11 29361847f8eSopenharmony_ci */ 29461847f8eSopenharmony_cideclare const QRCodeInstance: QRCodeAttribute; 295