File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -65,13 +65,12 @@ Add the dependency
65
65
66
66
QRView qrView = findViewById(R . id. qrView);
67
67
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
75
74
@Override
76
75
public void onQRInitiated () {
77
76
// fired when QR generation starts
@@ -92,7 +91,7 @@ Add the dependency
92
91
// fired if an error is encountered while generating QR
93
92
}
94
93
})
95
- .build(); // always call build() after adding all methods and listener
94
+ .build(); // required: always call build() after adding all methods and listener
96
95
```
97
96
98
97
## Release History
You can’t perform that action at this time.
0 commit comments