@capgo/inappbrowser 7.22.1 → 7.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -13
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java +769 -954
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/Options.java +383 -409
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewCallbacks.java +7 -7
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewDialog.java +2565 -3135
- package/dist/docs.json +13 -13
- package/dist/esm/definitions.d.ts +10 -10
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js +12 -12
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +12 -12
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +12 -12
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/InAppBrowserPlugin/InAppBrowserPlugin.swift +1 -1
- package/ios/Sources/InAppBrowserPlugin/WKWebViewController.swift +1 -1
- package/package.json +2 -2
|
@@ -14,463 +14,437 @@ import java.util.regex.Pattern;
|
|
|
14
14
|
|
|
15
15
|
public class Options {
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
iconTypeEnum = AllIconTypes.VECTOR;
|
|
68
|
-
} else {
|
|
69
|
-
throw new IllegalArgumentException(
|
|
70
|
-
"buttonNearDone.android.iconType must be 'asset' or 'vector'"
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
String icon = android.getString("icon");
|
|
75
|
-
if (icon == null) {
|
|
76
|
-
throw new IllegalArgumentException(
|
|
77
|
-
"buttonNearDone.android.icon is null"
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// For asset type, verify the file exists
|
|
82
|
-
if (iconTypeEnum == AllIconTypes.ASSET) {
|
|
83
|
-
InputStream fileInputString = null;
|
|
84
|
-
|
|
85
|
-
try {
|
|
86
|
-
// Try to find in public folder first
|
|
87
|
-
try {
|
|
88
|
-
fileInputString = assetManager.open("public/" + icon);
|
|
89
|
-
} catch (IOException e) {
|
|
90
|
-
// If not in public, try in root assets
|
|
91
|
-
try {
|
|
92
|
-
fileInputString = assetManager.open(icon);
|
|
93
|
-
} catch (IOException e2) {
|
|
94
|
-
throw new IllegalArgumentException(
|
|
95
|
-
"buttonNearDone.android.icon cannot be found in the assetManager"
|
|
96
|
-
);
|
|
17
|
+
public static class ButtonNearDone {
|
|
18
|
+
|
|
19
|
+
public enum AllIconTypes {
|
|
20
|
+
ASSET,
|
|
21
|
+
VECTOR
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
private final AllIconTypes iconTypeEnum;
|
|
25
|
+
private final String iconType;
|
|
26
|
+
private final String icon;
|
|
27
|
+
private final int height;
|
|
28
|
+
private final int width;
|
|
29
|
+
|
|
30
|
+
private ButtonNearDone(AllIconTypes iconTypeEnum, String iconType, String icon, int height, int width) {
|
|
31
|
+
this.iconTypeEnum = iconTypeEnum;
|
|
32
|
+
this.iconType = iconType;
|
|
33
|
+
this.icon = icon;
|
|
34
|
+
this.height = height;
|
|
35
|
+
this.width = width;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@Nullable
|
|
39
|
+
public static ButtonNearDone generateFromPluginCall(PluginCall call, AssetManager assetManager)
|
|
40
|
+
throws IllegalArgumentException, RuntimeException {
|
|
41
|
+
JSObject buttonNearDone = call.getObject("buttonNearDone");
|
|
42
|
+
if (buttonNearDone == null) {
|
|
43
|
+
// Return null when "buttonNearDone" isn't configured, else throw an error
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
JSObject android = buttonNearDone.getJSObject("android");
|
|
48
|
+
if (android == null) {
|
|
49
|
+
throw new IllegalArgumentException("buttonNearDone.android is null");
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
String iconType = android.getString("iconType", "asset");
|
|
53
|
+
AllIconTypes iconTypeEnum;
|
|
54
|
+
|
|
55
|
+
// Validate and process icon type
|
|
56
|
+
if ("asset".equals(iconType)) {
|
|
57
|
+
iconTypeEnum = AllIconTypes.ASSET;
|
|
58
|
+
} else if ("vector".equals(iconType)) {
|
|
59
|
+
iconTypeEnum = AllIconTypes.VECTOR;
|
|
60
|
+
} else {
|
|
61
|
+
throw new IllegalArgumentException("buttonNearDone.android.iconType must be 'asset' or 'vector'");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
String icon = android.getString("icon");
|
|
65
|
+
if (icon == null) {
|
|
66
|
+
throw new IllegalArgumentException("buttonNearDone.android.icon is null");
|
|
97
67
|
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
68
|
+
|
|
69
|
+
// For asset type, verify the file exists
|
|
70
|
+
if (iconTypeEnum == AllIconTypes.ASSET) {
|
|
71
|
+
InputStream fileInputString = null;
|
|
72
|
+
|
|
73
|
+
try {
|
|
74
|
+
// Try to find in public folder first
|
|
75
|
+
try {
|
|
76
|
+
fileInputString = assetManager.open("public/" + icon);
|
|
77
|
+
} catch (IOException e) {
|
|
78
|
+
// If not in public, try in root assets
|
|
79
|
+
try {
|
|
80
|
+
fileInputString = assetManager.open(icon);
|
|
81
|
+
} catch (IOException e2) {
|
|
82
|
+
throw new IllegalArgumentException("buttonNearDone.android.icon cannot be found in the assetManager");
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
// File exists, do nothing
|
|
86
|
+
} finally {
|
|
87
|
+
// Close the input stream if it was opened
|
|
88
|
+
if (fileInputString != null) {
|
|
89
|
+
try {
|
|
90
|
+
fileInputString.close();
|
|
91
|
+
} catch (IOException e) {
|
|
92
|
+
e.printStackTrace();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
// For vector type, we don't validate here since resources are checked at runtime
|
|
98
|
+
else if (iconTypeEnum == AllIconTypes.VECTOR) {
|
|
99
|
+
// Vector resources will be validated when used
|
|
100
|
+
System.out.println("Vector resource will be validated at runtime: " + icon);
|
|
107
101
|
}
|
|
108
|
-
|
|
102
|
+
|
|
103
|
+
Integer width = android.getInteger("width", 24);
|
|
104
|
+
Integer height = android.getInteger("height", 24);
|
|
105
|
+
|
|
106
|
+
final ButtonNearDone buttonNearDone1 = new ButtonNearDone(iconTypeEnum, iconType, icon, height, width);
|
|
107
|
+
return buttonNearDone1;
|
|
109
108
|
}
|
|
110
|
-
}
|
|
111
|
-
// For vector type, we don't validate here since resources are checked at runtime
|
|
112
|
-
else if (iconTypeEnum == AllIconTypes.VECTOR) {
|
|
113
|
-
// Vector resources will be validated when used
|
|
114
|
-
System.out.println(
|
|
115
|
-
"Vector resource will be validated at runtime: " + icon
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
Integer width = android.getInteger("width", 24);
|
|
120
|
-
Integer height = android.getInteger("height", 24);
|
|
121
|
-
|
|
122
|
-
final ButtonNearDone buttonNearDone1 = new ButtonNearDone(
|
|
123
|
-
iconTypeEnum,
|
|
124
|
-
iconType,
|
|
125
|
-
icon,
|
|
126
|
-
height,
|
|
127
|
-
width
|
|
128
|
-
);
|
|
129
|
-
return buttonNearDone1;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
public AllIconTypes getIconTypeEnum() {
|
|
133
|
-
return iconTypeEnum;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
public String getIconType() {
|
|
137
|
-
return iconType;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
public String getIcon() {
|
|
141
|
-
return icon;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
public int getHeight() {
|
|
145
|
-
return height;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
public int getWidth() {
|
|
149
|
-
return width;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
private String title;
|
|
154
|
-
private boolean CloseModal;
|
|
155
|
-
private String CloseModalTitle;
|
|
156
|
-
private String CloseModalDescription;
|
|
157
|
-
private String CloseModalCancel;
|
|
158
|
-
private ButtonNearDone buttonNearDone;
|
|
159
|
-
private String CloseModalOk;
|
|
160
|
-
private String url;
|
|
161
|
-
private JSObject headers;
|
|
162
|
-
private JSObject credentials;
|
|
163
|
-
private String toolbarType;
|
|
164
|
-
private JSObject shareDisclaimer;
|
|
165
|
-
private String shareSubject;
|
|
166
|
-
private boolean disableGoBackOnNativeApplication;
|
|
167
|
-
private boolean activeNativeNavigationForWebview;
|
|
168
|
-
private boolean isPresentAfterPageLoad;
|
|
169
|
-
private WebViewCallbacks callbacks;
|
|
170
|
-
private PluginCall pluginCall;
|
|
171
|
-
private boolean VisibleTitle;
|
|
172
|
-
private String ToolbarColor;
|
|
173
|
-
private String BackgroundColor;
|
|
174
|
-
private boolean ShowArrow;
|
|
175
|
-
private boolean ignoreUntrustedSSLError;
|
|
176
|
-
private String preShowScript;
|
|
177
|
-
private String toolbarTextColor;
|
|
178
|
-
private Pattern proxyRequestsPattern = null;
|
|
179
|
-
private boolean materialPicker = false;
|
|
180
|
-
private int textZoom = 100; // Default text zoom is 100%
|
|
181
|
-
private boolean preventDeeplink = false;
|
|
182
|
-
private List<String> authorizedAppLinks = new ArrayList<>();
|
|
183
|
-
private boolean enabledSafeBottomMargin = false;
|
|
184
|
-
private boolean useTopInset = false;
|
|
185
|
-
private boolean enableGooglePaySupport = false;
|
|
186
|
-
private List<String> blockedHosts = new ArrayList<>();
|
|
187
|
-
|
|
188
|
-
public int getTextZoom() {
|
|
189
|
-
return textZoom;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
public void setTextZoom(int textZoom) {
|
|
193
|
-
this.textZoom = textZoom;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
public boolean getMaterialPicker() {
|
|
197
|
-
return materialPicker;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
public void setMaterialPicker(boolean materialPicker) {
|
|
201
|
-
this.materialPicker = materialPicker;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
public boolean getEnabledSafeMargin() {
|
|
205
|
-
return enabledSafeBottomMargin;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
public void setEnabledSafeMargin(boolean enabledSafeBottomMargin) {
|
|
209
|
-
this.enabledSafeBottomMargin = enabledSafeBottomMargin;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
public boolean getUseTopInset() {
|
|
213
|
-
return useTopInset;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
public void setUseTopInset(boolean useTopInset) {
|
|
217
|
-
this.useTopInset = useTopInset;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
public Pattern getProxyRequestsPattern() {
|
|
221
|
-
return proxyRequestsPattern;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
public void setProxyRequestsPattern(Pattern proxyRequestsPattern) {
|
|
225
|
-
this.proxyRequestsPattern = proxyRequestsPattern;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
public PluginCall getPluginCall() {
|
|
229
|
-
return pluginCall;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
public void setPluginCall(PluginCall pluginCall) {
|
|
233
|
-
this.pluginCall = pluginCall;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
public String getTitle() {
|
|
237
|
-
return title;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
public void setTitle(String title) {
|
|
241
|
-
this.title = title;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
public boolean getCloseModal() {
|
|
245
|
-
return CloseModal;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
public void setCloseModal(boolean CloseModal) {
|
|
249
|
-
this.CloseModal = CloseModal;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
public String getCloseModalTitle() {
|
|
253
|
-
return CloseModalTitle;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
public void setCloseModalTitle(String CloseModalTitle) {
|
|
257
|
-
this.CloseModalTitle = CloseModalTitle;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
public String getCloseModalDescription() {
|
|
261
|
-
return CloseModalDescription;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
public void setCloseModalDescription(String CloseModalDescription) {
|
|
265
|
-
this.CloseModalDescription = CloseModalDescription;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
public void setButtonNearDone(ButtonNearDone buttonNearDone) {
|
|
269
|
-
this.buttonNearDone = buttonNearDone;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
public ButtonNearDone getButtonNearDone() {
|
|
273
|
-
return this.buttonNearDone;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
public String getCloseModalCancel() {
|
|
277
|
-
return CloseModalCancel;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
public void setCloseModalCancel(String CloseModalCancel) {
|
|
281
|
-
this.CloseModalCancel = CloseModalCancel;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
public String getCloseModalOk() {
|
|
285
|
-
return CloseModalOk;
|
|
286
|
-
}
|
|
287
109
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
110
|
+
public AllIconTypes getIconTypeEnum() {
|
|
111
|
+
return iconTypeEnum;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
public String getIconType() {
|
|
115
|
+
return iconType;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
public String getIcon() {
|
|
119
|
+
return icon;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
public int getHeight() {
|
|
123
|
+
return height;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
public int getWidth() {
|
|
127
|
+
return width;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
private String title;
|
|
132
|
+
private boolean CloseModal;
|
|
133
|
+
private String CloseModalTitle;
|
|
134
|
+
private String CloseModalDescription;
|
|
135
|
+
private String CloseModalCancel;
|
|
136
|
+
private ButtonNearDone buttonNearDone;
|
|
137
|
+
private String CloseModalOk;
|
|
138
|
+
private String url;
|
|
139
|
+
private JSObject headers;
|
|
140
|
+
private JSObject credentials;
|
|
141
|
+
private String toolbarType;
|
|
142
|
+
private JSObject shareDisclaimer;
|
|
143
|
+
private String shareSubject;
|
|
144
|
+
private boolean disableGoBackOnNativeApplication;
|
|
145
|
+
private boolean activeNativeNavigationForWebview;
|
|
146
|
+
private boolean isPresentAfterPageLoad;
|
|
147
|
+
private WebViewCallbacks callbacks;
|
|
148
|
+
private PluginCall pluginCall;
|
|
149
|
+
private boolean VisibleTitle;
|
|
150
|
+
private String ToolbarColor;
|
|
151
|
+
private String BackgroundColor;
|
|
152
|
+
private boolean ShowArrow;
|
|
153
|
+
private boolean ignoreUntrustedSSLError;
|
|
154
|
+
private String preShowScript;
|
|
155
|
+
private String toolbarTextColor;
|
|
156
|
+
private Pattern proxyRequestsPattern = null;
|
|
157
|
+
private boolean materialPicker = false;
|
|
158
|
+
private int textZoom = 100; // Default text zoom is 100%
|
|
159
|
+
private boolean preventDeeplink = false;
|
|
160
|
+
private List<String> authorizedAppLinks = new ArrayList<>();
|
|
161
|
+
private boolean enabledSafeBottomMargin = false;
|
|
162
|
+
private boolean useTopInset = false;
|
|
163
|
+
private boolean enableGooglePaySupport = false;
|
|
164
|
+
private List<String> blockedHosts = new ArrayList<>();
|
|
165
|
+
|
|
166
|
+
public int getTextZoom() {
|
|
167
|
+
return textZoom;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
public void setTextZoom(int textZoom) {
|
|
171
|
+
this.textZoom = textZoom;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
public boolean getMaterialPicker() {
|
|
175
|
+
return materialPicker;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
public void setMaterialPicker(boolean materialPicker) {
|
|
179
|
+
this.materialPicker = materialPicker;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
public boolean getEnabledSafeMargin() {
|
|
183
|
+
return enabledSafeBottomMargin;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
public void setEnabledSafeMargin(boolean enabledSafeBottomMargin) {
|
|
187
|
+
this.enabledSafeBottomMargin = enabledSafeBottomMargin;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
public boolean getUseTopInset() {
|
|
191
|
+
return useTopInset;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
public void setUseTopInset(boolean useTopInset) {
|
|
195
|
+
this.useTopInset = useTopInset;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
public Pattern getProxyRequestsPattern() {
|
|
199
|
+
return proxyRequestsPattern;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
public void setProxyRequestsPattern(Pattern proxyRequestsPattern) {
|
|
203
|
+
this.proxyRequestsPattern = proxyRequestsPattern;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
public PluginCall getPluginCall() {
|
|
207
|
+
return pluginCall;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
public void setPluginCall(PluginCall pluginCall) {
|
|
211
|
+
this.pluginCall = pluginCall;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
public String getTitle() {
|
|
215
|
+
return title;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
public void setTitle(String title) {
|
|
219
|
+
this.title = title;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
public boolean getCloseModal() {
|
|
223
|
+
return CloseModal;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
public void setCloseModal(boolean CloseModal) {
|
|
227
|
+
this.CloseModal = CloseModal;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
public String getCloseModalTitle() {
|
|
231
|
+
return CloseModalTitle;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
public void setCloseModalTitle(String CloseModalTitle) {
|
|
235
|
+
this.CloseModalTitle = CloseModalTitle;
|
|
236
|
+
}
|
|
291
237
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
238
|
+
public String getCloseModalDescription() {
|
|
239
|
+
return CloseModalDescription;
|
|
240
|
+
}
|
|
295
241
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
242
|
+
public void setCloseModalDescription(String CloseModalDescription) {
|
|
243
|
+
this.CloseModalDescription = CloseModalDescription;
|
|
244
|
+
}
|
|
299
245
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
246
|
+
public void setButtonNearDone(ButtonNearDone buttonNearDone) {
|
|
247
|
+
this.buttonNearDone = buttonNearDone;
|
|
248
|
+
}
|
|
303
249
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
250
|
+
public ButtonNearDone getButtonNearDone() {
|
|
251
|
+
return this.buttonNearDone;
|
|
252
|
+
}
|
|
307
253
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
254
|
+
public String getCloseModalCancel() {
|
|
255
|
+
return CloseModalCancel;
|
|
256
|
+
}
|
|
311
257
|
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
258
|
+
public void setCloseModalCancel(String CloseModalCancel) {
|
|
259
|
+
this.CloseModalCancel = CloseModalCancel;
|
|
260
|
+
}
|
|
315
261
|
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
262
|
+
public String getCloseModalOk() {
|
|
263
|
+
return CloseModalOk;
|
|
264
|
+
}
|
|
319
265
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
266
|
+
public void setCloseModalOk(String CloseModalOk) {
|
|
267
|
+
this.CloseModalOk = CloseModalOk;
|
|
268
|
+
}
|
|
323
269
|
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
270
|
+
public String getUrl() {
|
|
271
|
+
return url;
|
|
272
|
+
}
|
|
327
273
|
|
|
328
|
-
|
|
274
|
+
public void setUrl(String url) {
|
|
275
|
+
this.url = url;
|
|
276
|
+
}
|
|
329
277
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
278
|
+
public JSObject getHeaders() {
|
|
279
|
+
return headers;
|
|
280
|
+
}
|
|
333
281
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
282
|
+
public void setHeaders(JSObject headers) {
|
|
283
|
+
this.headers = headers;
|
|
284
|
+
}
|
|
337
285
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
286
|
+
public JSObject getCredentials() {
|
|
287
|
+
return credentials;
|
|
288
|
+
}
|
|
341
289
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
290
|
+
public void setCredentials(JSObject credentials) {
|
|
291
|
+
this.credentials = credentials;
|
|
292
|
+
}
|
|
345
293
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
294
|
+
public String getToolbarType() {
|
|
295
|
+
return toolbarType;
|
|
296
|
+
}
|
|
349
297
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
298
|
+
public void setToolbarType(String toolbarType) {
|
|
299
|
+
this.toolbarType = toolbarType;
|
|
300
|
+
}
|
|
353
301
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
this.activeNativeNavigationForWebview = activeNativeNavigationForWebview;
|
|
358
|
-
}
|
|
302
|
+
public JSObject getShareDisclaimer() {
|
|
303
|
+
return shareDisclaimer;
|
|
304
|
+
}
|
|
359
305
|
|
|
360
|
-
|
|
361
|
-
return disableGoBackOnNativeApplication;
|
|
362
|
-
}
|
|
306
|
+
public boolean showReloadButton;
|
|
363
307
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
this.disableGoBackOnNativeApplication = disableGoBackOnNativeApplication;
|
|
368
|
-
}
|
|
308
|
+
public boolean getShowReloadButton() {
|
|
309
|
+
return showReloadButton;
|
|
310
|
+
}
|
|
369
311
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
312
|
+
public void setShowReloadButton(boolean showReloadButton) {
|
|
313
|
+
this.showReloadButton = showReloadButton;
|
|
314
|
+
}
|
|
373
315
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
316
|
+
public void setShareDisclaimer(JSObject shareDisclaimer) {
|
|
317
|
+
this.shareDisclaimer = shareDisclaimer;
|
|
318
|
+
}
|
|
377
319
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
320
|
+
public String getShareSubject() {
|
|
321
|
+
return shareSubject;
|
|
322
|
+
}
|
|
381
323
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
324
|
+
public void setShareSubject(String shareSubject) {
|
|
325
|
+
this.shareSubject = shareSubject;
|
|
326
|
+
}
|
|
385
327
|
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
328
|
+
public boolean getActiveNativeNavigationForWebview() {
|
|
329
|
+
return activeNativeNavigationForWebview;
|
|
330
|
+
}
|
|
389
331
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
332
|
+
public void setActiveNativeNavigationForWebview(boolean activeNativeNavigationForWebview) {
|
|
333
|
+
this.activeNativeNavigationForWebview = activeNativeNavigationForWebview;
|
|
334
|
+
}
|
|
393
335
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
336
|
+
public boolean getDisableGoBackOnNativeApplication() {
|
|
337
|
+
return disableGoBackOnNativeApplication;
|
|
338
|
+
}
|
|
397
339
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
340
|
+
public void setDisableGoBackOnNativeApplication(boolean disableGoBackOnNativeApplication) {
|
|
341
|
+
this.disableGoBackOnNativeApplication = disableGoBackOnNativeApplication;
|
|
342
|
+
}
|
|
401
343
|
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
344
|
+
public boolean isPresentAfterPageLoad() {
|
|
345
|
+
return isPresentAfterPageLoad;
|
|
346
|
+
}
|
|
405
347
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
348
|
+
public void setPresentAfterPageLoad(boolean presentAfterPageLoad) {
|
|
349
|
+
isPresentAfterPageLoad = presentAfterPageLoad;
|
|
350
|
+
}
|
|
409
351
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
352
|
+
public WebViewCallbacks getCallbacks() {
|
|
353
|
+
return callbacks;
|
|
354
|
+
}
|
|
413
355
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
356
|
+
public void setCallbacks(WebViewCallbacks callbacks) {
|
|
357
|
+
this.callbacks = callbacks;
|
|
358
|
+
}
|
|
417
359
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
360
|
+
public boolean getVisibleTitle() {
|
|
361
|
+
return VisibleTitle;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
public void setVisibleTitle(boolean _visibleTitle) {
|
|
365
|
+
this.VisibleTitle = _visibleTitle;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
public String getToolbarColor() {
|
|
369
|
+
return ToolbarColor;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
public void setToolbarColor(String toolbarColor) {
|
|
373
|
+
this.ToolbarColor = toolbarColor;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
public String getBackgroundColor() {
|
|
377
|
+
return BackgroundColor;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
public void setBackgroundColor(String backgroundColor) {
|
|
381
|
+
this.BackgroundColor = backgroundColor;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
public String getToolbarTextColor() {
|
|
385
|
+
return toolbarTextColor;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
public void setToolbarTextColor(String toolbarTextColor) {
|
|
389
|
+
this.toolbarTextColor = toolbarTextColor;
|
|
390
|
+
}
|
|
421
391
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
392
|
+
public boolean showArrow() {
|
|
393
|
+
return ShowArrow;
|
|
394
|
+
}
|
|
425
395
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
396
|
+
public void setArrow(boolean _showArrow) {
|
|
397
|
+
this.ShowArrow = _showArrow;
|
|
398
|
+
}
|
|
429
399
|
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
400
|
+
public boolean ignoreUntrustedSSLError() {
|
|
401
|
+
return ignoreUntrustedSSLError;
|
|
402
|
+
}
|
|
433
403
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
404
|
+
public void setIgnoreUntrustedSSLError(boolean _ignoreUntrustedSSLError) {
|
|
405
|
+
this.ignoreUntrustedSSLError = _ignoreUntrustedSSLError;
|
|
406
|
+
}
|
|
437
407
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
408
|
+
public String getPreShowScript() {
|
|
409
|
+
return preShowScript;
|
|
410
|
+
}
|
|
441
411
|
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
412
|
+
public void setPreShowScript(String preLoadScript) {
|
|
413
|
+
this.preShowScript = preLoadScript;
|
|
414
|
+
}
|
|
445
415
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
416
|
+
public boolean getPreventDeeplink() {
|
|
417
|
+
return preventDeeplink;
|
|
418
|
+
}
|
|
449
419
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
420
|
+
public void setPreventDeeplink(boolean preventDeeplink) {
|
|
421
|
+
this.preventDeeplink = preventDeeplink;
|
|
422
|
+
}
|
|
453
423
|
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
424
|
+
public List<String> getAuthorizedAppLinks() {
|
|
425
|
+
return authorizedAppLinks;
|
|
426
|
+
}
|
|
457
427
|
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
428
|
+
public void setAuthorizedAppLinks(List<String> authorizedAppLinks) {
|
|
429
|
+
this.authorizedAppLinks = authorizedAppLinks;
|
|
430
|
+
}
|
|
461
431
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
432
|
+
public boolean getEnableGooglePaySupport() {
|
|
433
|
+
return enableGooglePaySupport;
|
|
434
|
+
}
|
|
465
435
|
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
return blockedHosts;
|
|
436
|
+
public void setEnableGooglePaySupport(boolean enableGooglePaySupport) {
|
|
437
|
+
this.enableGooglePaySupport = enableGooglePaySupport;
|
|
469
438
|
}
|
|
470
|
-
return new ArrayList<>();
|
|
471
|
-
}
|
|
472
439
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
440
|
+
public List<String> getBlockedHosts() {
|
|
441
|
+
if (blockedHosts != null) {
|
|
442
|
+
return blockedHosts;
|
|
443
|
+
}
|
|
444
|
+
return new ArrayList<>();
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
public void setBlockedHosts(List<String> blockedHosts) {
|
|
448
|
+
this.blockedHosts = blockedHosts;
|
|
449
|
+
}
|
|
476
450
|
}
|