Skip to content

Commit d963c8f

Browse files
authored
Update README.md
1 parent 63de3ca commit d963c8f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

qrview/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ Add the dependency
6565

6666
QRView qrView = findViewById(R.id.qrView);
6767

68-
qrView.setData("https://chtgupta.github.io") // the only required method, rest all are optional
69-
70-
.setSize(120, QRParams.DP)
71-
.setErrorCorrectionLevel(ErrorCorrection.H)
72-
.setQRForegroundColor(Color.BLACK)
73-
.setQRBackgroundColor(Color.WHITE)
74-
.addListener(new QRViewListener() {
68+
qrView.setData("https://chtgupta.github.io") // required
69+
.setSize(120, QRParams.DP) // optional
70+
.setErrorCorrectionLevel(ErrorCorrection.H) // optional
71+
.setQRForegroundColor(Color.BLACK) // optional
72+
.setQRBackgroundColor(Color.WHITE) // optional
73+
.addListener(new QRViewListener() { // optional
7574
@Override
7675
public void onQRInitiated() {
7776
// fired when QR generation starts
@@ -92,7 +91,7 @@ Add the dependency
9291
// fired if an error is encountered while generating QR
9392
}
9493
})
95-
.build(); // always call build() after adding all methods and listener
94+
.build(); // required: always call build() after adding all methods and listener
9695
```
9796

9897
## Release History

0 commit comments

Comments
 (0)