//qrcode-kotlin/qrcode.render/QRCodeGraphics/availableFormats

availableFormats

[common]
expect fun availableFormats(): Array<String>

Returns the available formats to be passed as parameters to getBytes.

[android, jvm]
[android, jvm]
actual open fun availableFormats(): Array<String>

Returns the available formats to be passed as parameters to getBytes.

See also

 
Bitmap.CompressFormat
Bitmap.CompressFormat.PNG
Bitmap.CompressFormat.JPEG
CompressFormat.WEBP
ImageIO.getWriterFileSuffixes

[js]
actual open fun availableFormats(): Array<String>

Returns the available formats to be passed as parameters to getBytes.

Note: The actual list of supported formats depends on the browser, so this won’t be checked. PNG is always supported.