1/* 2 * Copyright (c) 2021-2023 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 * Provides an interface for generating QR codes. 18 * 19 * @interface QRCodeInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Provides an interface for generating QR codes. 25 * 26 * @interface QRCodeInterface 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Provides an interface for generating QR codes. 33 * 34 * @interface QRCodeInterface 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40interface QRCodeInterface { 41 /** 42 * Called when a QR code is set. 43 * 44 * @param { string } value 45 * @returns { QRCodeAttribute } 46 * @syscap SystemCapability.ArkUI.ArkUI.Full 47 * @since 7 48 */ 49 /** 50 * Called when a QR code is set. 51 * 52 * @param { string } value 53 * @returns { QRCodeAttribute } 54 * @syscap SystemCapability.ArkUI.ArkUI.Full 55 * @since 9 56 * @form 57 */ 58 /** 59 * Called when a QR code is set. 60 * 61 * @param { string } value 62 * @returns { QRCodeAttribute } 63 * @syscap SystemCapability.ArkUI.ArkUI.Full 64 * @crossplatform 65 * @since 10 66 * @form 67 */ 68 (value: string): QRCodeAttribute; 69} 70 71/** 72 * Defines the qrcode attribute functions. 73 * 74 * @extends CommonMethod 75 * @syscap SystemCapability.ArkUI.ArkUI.Full 76 * @since 7 77 */ 78/** 79 * Defines the qrcode attribute functions. 80 * 81 * @extends CommonMethod 82 * @syscap SystemCapability.ArkUI.ArkUI.Full 83 * @since 9 84 * @form 85 */ 86/** 87 * Defines the qrcode attribute functions. 88 * 89 * @extends CommonMethod 90 * @syscap SystemCapability.ArkUI.ArkUI.Full 91 * @crossplatform 92 * @since 10 93 * @form 94 */ 95declare class QRCodeAttribute extends CommonMethod<QRCodeAttribute> { 96 /** 97 * Called when the QR code color is set. 98 * 99 * @param { ResourceColor } value 100 * @returns { QRCodeAttribute } 101 * @syscap SystemCapability.ArkUI.ArkUI.Full 102 * @since 7 103 */ 104 /** 105 * Called when the QR code color is set. 106 * 107 * @param { ResourceColor } value 108 * @returns { QRCodeAttribute } 109 * @syscap SystemCapability.ArkUI.ArkUI.Full 110 * @since 9 111 * @form 112 */ 113 /** 114 * Called when the QR code color is set. 115 * 116 * @param { ResourceColor } value 117 * @returns { QRCodeAttribute } 118 * @syscap SystemCapability.ArkUI.ArkUI.Full 119 * @crossplatform 120 * @since 10 121 * @form 122 */ 123 color(value: ResourceColor): QRCodeAttribute; 124 125 /** 126 * Called when setting the QR code background color. 127 * 128 * @param { ResourceColor } value 129 * @returns { QRCodeAttribute } 130 * @syscap SystemCapability.ArkUI.ArkUI.Full 131 * @since 7 132 */ 133 /** 134 * Called when setting the QR code background color. 135 * 136 * @param { ResourceColor } value 137 * @returns { QRCodeAttribute } 138 * @syscap SystemCapability.ArkUI.ArkUI.Full 139 * @since 9 140 * @form 141 */ 142 /** 143 * Called when setting the QR code background color. 144 * 145 * @param { ResourceColor } value 146 * @returns { QRCodeAttribute } 147 * @syscap SystemCapability.ArkUI.ArkUI.Full 148 * @crossplatform 149 * @since 10 150 * @form 151 */ 152 backgroundColor(value: ResourceColor): QRCodeAttribute; 153} 154 155/** 156 * Defines QRCode Component. 157 * 158 * @syscap SystemCapability.ArkUI.ArkUI.Full 159 * @since 7 160 */ 161/** 162 * Defines QRCode Component. 163 * 164 * @syscap SystemCapability.ArkUI.ArkUI.Full 165 * @since 9 166 * @form 167 */ 168/** 169 * Defines QRCode Component. 170 * 171 * @syscap SystemCapability.ArkUI.ArkUI.Full 172 * @crossplatform 173 * @since 10 174 * @form 175 */ 176declare const QRCode: QRCodeInterface; 177 178/** 179 * Defines QRCode Component instance. 180 * 181 * @syscap SystemCapability.ArkUI.ArkUI.Full 182 * @since 7 183 */ 184/** 185 * Defines QRCode Component instance. 186 * 187 * @syscap SystemCapability.ArkUI.ArkUI.Full 188 * @since 9 189 * @form 190 */ 191/** 192 * Defines QRCode Component instance. 193 * 194 * @syscap SystemCapability.ArkUI.ArkUI.Full 195 * @crossplatform 196 * @since 10 197 * @form 198 */ 199declare const QRCodeInstance: QRCodeAttribute; 200