Inherits from NSObject
Declared in LUGenericQRCodeGenerator.h
LUGenericQRCodeGenerator.m

Overview

LUGenericQRCodeGenerator is used to build generic QR codes from arbitrary strings. Use LUPaymentTokenQRCodeGenerator to generate user QR codes for payment.

Properties

colorizeCodes

When enabled, QR codes will be colorized to match the LevelUp logo. Defaults to YES.

@property (nonatomic, assign) BOOL colorizeCodes

Discussion

When enabled, QR codes will be colorized to match the LevelUp logo. Defaults to YES.

Declared In

LUGenericQRCodeGenerator.h

outputHeight

The desired output height for QR codes in pixels. Default is 500.

@property (nonatomic, assign) int outputHeight

Discussion

The desired output height for QR codes in pixels. Default is 500.

Declared In

LUGenericQRCodeGenerator.h

outputWidth

The desired output width for QR codes in pixels. Default is 500.

@property (nonatomic, assign) int outputWidth

Discussion

The desired output width for QR codes in pixels. Default is 500.

Declared In

LUGenericQRCodeGenerator.h

Class Methods

QRCodeFromString:

Generates a UIImage containing a QR code.

+ (UIImage *)QRCodeFromString:(NSString *)string

Parameters

string

A string to be encoded as a QR code.

Return Value

A UIImage containing the QR code.

Discussion

Generates a UIImage containing a QR code.

Declared In

LUGenericQRCodeGenerator.h

sharedGenerator

Returns the LUGenericQRCodeGenerator singleton.

+ (instancetype)sharedGenerator

Return Value

The shared LUGenericQRCodeGenerator instance.

Discussion

Returns the LUGenericQRCodeGenerator singleton.

Declared In

LUGenericQRCodeGenerator.h