Package com.aducid.sdk.util
Class QrCodeUtils
java.lang.Object
com.aducid.sdk.util.QrCodeUtils
public class QrCodeUtils
extends java.lang.Object
QR code utilities.
Created 17. 1. 2017 17:09:23
- Author:
- Radek Jira
-
Method Summary
Modifier and Type Method Description static byte[]
generatePicture(java.lang.String redirectUrl, int width, int height)
Codes redirect URL to QR picture.
-
Method Details
-
generatePicture
public static byte[] generatePicture(java.lang.String redirectUrl, int width, int height) throws AducidClientExceptionCodes redirect URL to QR picture. If picture dimension are null, default dimensions 300x300 pixels are used.
- Parameters:
redirectUrl
- redirect URL to code to QR picturewidth
- QR code picture widthheight
- QR code picture height- Returns:
- QR code picture as byte array
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-