hostQRCode

open fun <T> hostQRCode(port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean)

Method to create and host a squared QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

Throws

when an error is occurred


open fun <T> hostQRCode(foregroundColor: String, port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean)

Method to create and host a squared QRCode file

Parameters

foregroundColor

: color of the QRCode pattern

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

Throws

when an error is occurred


open fun <T> hostQRCode(foregroundColor: String, port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean)

Method to create and host a QRCode file

Parameters

foregroundColor

: color of the QRCode pattern

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean, backgroundColor: String)

Method to create and host a squared QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, backgroundColor: String)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean, foregroundColor: String, backgroundColor: String)

Method to create and host a squared QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

foregroundColor

: color of the QRCode pattern

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, foregroundColor: String, backgroundColor: String)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

foregroundColor

: color of the QRCode pattern

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean, htmlPage: File)

Method to create and host a squared QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, htmlPage: File)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

Throws

when an error is occurred


open fun <T> hostQRCode(foregroundColor: String, port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean, htmlPage: File)

Method to create and host a squared QRCode file

Parameters

foregroundColor

: color of the QRCode pattern

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

Throws

when an error is occurred


open fun <T> hostQRCode(foregroundColor: String, port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, htmlPage: File)

Method to create and host a QRCode file

Parameters

foregroundColor

: color of the QRCode pattern

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean, htmlPage: File, backgroundColor: String)

Method to create and host a squared QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, htmlPage: File, backgroundColor: String)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, squareDimension: Int, perpetual: Boolean, htmlPage: File, foregroundColor: String, backgroundColor: String)

Method to create and host a squared QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

squareDimension

: dimensions of the square

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

foregroundColor

: color of the QRCode pattern

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, htmlPage: File, foregroundColor: String, backgroundColor: String)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

htmlPage

: custom html page where insert the QRCode

foregroundColor

: color of the QRCode pattern

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


private open fun <T> hostQRCode(port: Int, data: T, path: String, width: Int, height: Int, perpetual: Boolean, html: String, foregroundColor: String, backgroundColor: String)

Method to create and host a QRCode file

Parameters

port

: port where host the QRCode file

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

perpetual

: whether the hosting must accept requests perpetuity or accept a single one request

html

: html text to create the host page

foregroundColor

: color of the QRCode pattern

backgroundColor

: background color of the QRCode pattern

Throws

when an error is occurred


private open fun <T> hostQRCode(data: T, path: String, width: Int, height: Int, socketManager: SocketManager, html: String, foregroundColor: String, backgroundColor: String)

Method to create and host a QRCode file

Parameters

data

: data to create the QRCode

path

: path where create the file, included the suffix

width

: width of the QRCode

height

: height of the QRCode

socketManager

: manager of the hosting

html

: html text to create the host page

foregroundColor

: color of the QRCode pattern

backgroundColor

: background color of the QRCode pattern