2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 namespace Tizen.Multimedia
20 /// This class represents the configuration details for the QR code to be generated by BarcodeGenerator
22 public class QrConfiguration
25 /// The constructor of the QrConfig class
27 /// <param name="qrMode">Encoding mode for the message (only for QR codes; for 1D barcodes set this parameter to Unavailable)</param>
28 /// <param name="ecc">Error correction level (only for QR codes; for 1D barcodes set this parameter to Unavailable)</param>
29 /// <param name="version">QR code version (for 1D barcodes set this parameter to 0)</param>
31 /// var obj = new QrConfiguration(QrMode.Numeric, ErrorCorrectionLevel.Medium, 30);
33 public QrConfiguration(QrMode qrMode, ErrorCorrectionLevel ecc, int version)
36 ErrorCorrectionLevel = ecc;
41 /// Gets encoding mode for the message (only for QR codes; for 1D barcodes set this value to Unavailable)
43 public QrMode Mode { get; }
46 /// Gets error correction level (only for QR codes; for 1D barcodes set this value to Unavailable)
48 public ErrorCorrectionLevel ErrorCorrectionLevel { get; }
51 /// Gets QR code version (for 1D barcodes set this value to 0)
53 public int Version { get; }