@@ -56,6 +56,21 @@ public ScannerManager continuousScan() {
5656 return this ;
5757 }
5858
59+ public ScannerManager setFlashLightOnText (String lightOnText ) {
60+ scanOption .flashLightOnText = lightOnText ;
61+ return this ;
62+ }
63+
64+ public ScannerManager setFlashLightOffText (String lightOffText ) {
65+ scanOption .flashLightOffText = lightOffText ;
66+ return this ;
67+ }
68+
69+ public ScannerManager setScanNoticeText (String scanNoticeText ) {
70+ scanOption .scanNoticeText = scanNoticeText ;
71+ return this ;
72+ }
73+
5974 public ScannerManager setScanLineColors (List <Integer > scanLineColors ) {
6075 scanOption .scanLineColors = scanLineColors ;
6176 return this ;
@@ -85,6 +100,11 @@ public static class ScanOption implements Parcelable {
85100 private String title ;
86101 private boolean showAlbum = true ;
87102 private boolean continuousScan ;
103+
104+ private String flashLightOnText ;
105+ private String flashLightOffText ;
106+ private String scanNoticeText ;
107+
88108 private List <Integer > scanLineColors ;
89109
90110 public int getCornerColor () {
@@ -95,7 +115,7 @@ public int getBorderColor() {
95115 return borderColor ;
96116 }
97117
98- public int getScanMode (){
118+ public int getScanMode () {
99119 return scanMode ;
100120 }
101121
@@ -107,10 +127,22 @@ public boolean isShowAlbum() {
107127 return showAlbum ;
108128 }
109129
110- public boolean isContinuousScan (){
130+ public boolean isContinuousScan () {
111131 return continuousScan ;
112132 }
113133
134+ public String getFlashLightOnText () {
135+ return flashLightOnText ;
136+ }
137+
138+ public String getFlashLightOffText () {
139+ return flashLightOffText ;
140+ }
141+
142+ public String getScanNoticeText () {
143+ return scanNoticeText ;
144+ }
145+
114146 public List <Integer > getScanLineColors () {
115147 return scanLineColors ;
116148 }
@@ -128,6 +160,9 @@ public void writeToParcel(Parcel dest, int flags) {
128160 dest .writeString (this .title );
129161 dest .writeByte (this .showAlbum ? (byte ) 1 : (byte ) 0 );
130162 dest .writeByte (this .continuousScan ? (byte ) 1 : (byte ) 0 );
163+ dest .writeString (this .flashLightOnText );
164+ dest .writeString (this .flashLightOffText );
165+ dest .writeString (this .scanNoticeText );
131166 dest .writeList (this .scanLineColors );
132167 }
133168
@@ -141,6 +176,9 @@ protected ScanOption(Parcel in) {
141176 this .title = in .readString ();
142177 this .showAlbum = in .readByte () != 0 ;
143178 this .continuousScan = in .readByte () != 0 ;
179+ this .flashLightOnText = in .readString ();
180+ this .flashLightOffText = in .readString ();
181+ this .scanNoticeText = in .readString ();
144182 this .scanLineColors = new ArrayList <>();
145183 in .readList (this .scanLineColors , Integer .class .getClassLoader ());
146184 }
0 commit comments