[android-components](../../index.md) / [mozilla.components.feature.qr](../index.md) / [QrFragment](index.md) / [newInstance](./new-instance.md)

# newInstance

`fun newInstance(listener: `[`OnScanCompleteListener`](-on-scan-complete-listener/index.md)`): `[`QrFragment`](index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/qr/src/main/java/mozilla/components/feature/qr/QrFragment.kt#L489)