QrCodePainter

@Immutable
class QrCodePainter(val data: String, val options: QrOptions = QrOptions()) : CachedPainter

Encodes data payload and renders it into the compose Painter using styling options

Constructors

Link copied to clipboard
constructor(data: String, options: QrOptions = QrOptions())

Properties

Link copied to clipboard
Link copied to clipboard
open override val intrinsicSize: Size
Link copied to clipboard

Functions

Link copied to clipboard
fun DrawScope.draw(size: Size, alpha: Float, colorFilter: ColorFilter?)
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun DrawScope.onCache()
Link copied to clipboard
fun Painter.toImageBitmap(width: Int, height: Int, alpha: Float = 1.0f, colorFilter: ColorFilter? = null): ImageBitmap

Converts Painter to ImageBitmap with desired width, height, alpha and colorFilter

Link copied to clipboard
open override fun toString(): String