QrLogoPadding

@Stable
sealed interface QrLogoPadding

Type of padding applied to the logo. Helps to highlight the logo inside the QR code pattern. Padding can be added regardless of the presence of a logo.

Inheritors

Types

Link copied to clipboard
@Stable
class Accurate(val size: Float) : QrLogoPadding

Padding will be applied precisely according to the shape of logo

Link copied to clipboard
@Stable
data object Empty : QrLogoPadding

Logo will be drawn on top of QR code without any padding. QR code pixels might be visible through transparent logo.

Link copied to clipboard
@Stable
class Natural(val size: Float) : QrLogoPadding

Works like Accurate but all clipped pixels will be removed.

Properties

Link copied to clipboard
abstract val size: Float

Padding size relatively to the size of logo