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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • generatePicture

      public static byte[] generatePicture​(java.lang.String redirectUrl, int width, int height) throws AducidClientException

      Codes redirect URL to QR picture. If picture dimension are null, default dimensions 300x300 pixels are used.

      Parameters:
      redirectUrl - redirect URL to code to QR picture
      width - QR code picture width
      height - QR code picture height
      Returns:
      QR code picture as byte array
      Throws:
      AducidClientException - when error occurs during ADUCID client call