Package-level declarations

Types

Link copied to clipboard
abstract class CachedPainter : Painter
Link copied to clipboard
@Immutable
class QrCodePainter(val data: String, val options: QrOptions = QrOptions()) : CachedPainter

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

Functions

Link copied to clipboard
@Composable
fun rememberQrCodePainter(data: String, options: QrOptions): QrCodePainter
@Composable
fun rememberQrCodePainter(data: String, vararg keys: Any?, options: QrOptionsBuilderScope.() -> Unit): QrCodePainter
@Composable
fun rememberQrCodePainter(data: String, codeShape: QrCodeShape = QrCodeShape.Default, darkPixelShape: QrPixelShape = QrPixelShape.Default, lightPixelShape: QrPixelShape = QrPixelShape.Default, ballShape: QrBallShape = QrBallShape.Default, frameShape: QrFrameShape = QrFrameShape.Default, centralSymmetry: Boolean = true, darkBrush: QrBrush = QrBrush.Default, lightBrush: QrBrush = QrBrush.Unspecified, ballBrush: QrBrush = QrBrush.Unspecified, frameBrush: QrBrush = QrBrush.Unspecified, logoPainter: Painter? = null, logoSize: Float = 0.25f, logoPadding: QrLogoPadding = QrLogoPadding.Empty, logoShape: QrLogoShape = QrLogoShape.Default, backgroundPainter: Painter? = null, backgroundFill: Brush? = null, backgroundShape: Shape = RectangleShape, errorCorrectionLevel: QrErrorCorrectionLevel = QrErrorCorrectionLevel.Auto, fourEyed: Boolean = false, scale: Float = 1.0f): QrCodePainter

Create and remember QR code painter

@Composable
fun rememberQrCodePainter(data: String, shapes: QrShapes = QrShapes(), colors: QrColors = QrColors(), logo: QrLogo = QrLogo(), background: QrBackground = QrBackground(), errorCorrectionLevel: QrErrorCorrectionLevel = QrErrorCorrectionLevel.Auto, fourEyed: Boolean = false, scale: Float = 1.0f): QrCodePainter
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