[android-components](../../index.md) / [mozilla.components.feature.qr](../index.md) / [QrFeature](index.md) / [&lt;init&gt;](./-init-.md)

# &lt;init&gt;

`QrFeature(context: <ERROR CLASS>, fragmentManager: FragmentManager, onScanResult: `[`OnScanResult`](../-on-scan-result.md)` = { }, onNeedToRequestPermissions: `[`OnNeedToRequestPermissions`](../../mozilla.components.support.base.feature/-on-need-to-request-permissions.md)` = { })`

Feature implementation that provides QR scanning functionality via the [QrFragment](../-qr-fragment/index.md).

