@@ -98,194 +98,198 @@ class InAppBrowserSettings_
98
98
implements BrowserOptions , AndroidOptions , IosOptions {
99
99
///Set to `true` to create the browser and load the page, but not show it. Omit or set to `false` to have the browser open and load normally.
100
100
///The default value is `false` .
101
- ///
102
- ///**Officially Supported Platforms/Implementations**:
103
- ///- Android native WebView
104
- ///- iOS
105
- ///- MacOS
101
+ @SupportedPlatforms (platforms: [
102
+ AndroidPlatform (),
103
+ IOSPlatform (),
104
+ MacOSPlatform (),
105
+ WindowsPlatform ()
106
+ ])
106
107
bool ? hidden;
107
108
108
109
///Set to `true` to hide the toolbar at the top of the WebView. The default value is `false` .
109
- ///
110
- ///**Officially Supported Platforms/Implementations**:
111
- ///- Android native WebView
112
- ///- iOS
113
- ///- MacOS
110
+ @SupportedPlatforms (platforms : [
111
+ AndroidPlatform (),
112
+ IOSPlatform (),
113
+ MacOSPlatform ()
114
+ ])
114
115
bool ? hideToolbarTop;
115
116
116
117
///Set the custom background color of the toolbar at the top.
117
- ///
118
- ///**Officially Supported Platforms/Implementations**:
119
- ///- Android native WebView
120
- ///- iOS
121
- ///- MacOS
118
+ @SupportedPlatforms (platforms : [
119
+ AndroidPlatform (),
120
+ IOSPlatform (),
121
+ MacOSPlatform ()
122
+ ])
122
123
Color_ ? toolbarTopBackgroundColor;
123
124
124
125
///Set to `true` to hide the url bar on the toolbar at the top. The default value is `false` .
125
- ///
126
- ///**Officially Supported Platforms/Implementations**:
127
- ///- Android native WebView
128
- ///- iOS
129
- ///- MacOS
126
+ @SupportedPlatforms (platforms : [
127
+ AndroidPlatform (),
128
+ IOSPlatform (),
129
+ MacOSPlatform ()
130
+ ])
130
131
bool ? hideUrlBar;
131
132
132
133
///Set to `true` to hide the progress bar when the WebView is loading a page. The default value is `false` .
133
- ///
134
- ///**Officially Supported Platforms/Implementations**:
135
- ///- Android native WebView
136
- ///- iOS
137
- ///- MacOS
134
+ @SupportedPlatforms (platforms : [
135
+ AndroidPlatform (),
136
+ IOSPlatform (),
137
+ MacOSPlatform ()
138
+ ])
138
139
bool ? hideProgressBar;
139
140
140
141
///Set to `true` to hide the default menu items. The default value is `false` .
141
- ///
142
- ///**Officially Supported Platforms/Implementations**:
143
- ///- Android native WebView
144
- ///- iOS
142
+ @SupportedPlatforms (platforms: [
143
+ AndroidPlatform (),
144
+ IOSPlatform (),
145
+ MacOSPlatform ()
146
+ ])
145
147
bool ? hideDefaultMenuItems;
146
148
147
149
///Set to `true` if you want the title should be displayed. The default value is `false` .
148
- ///
149
- ///**Officially Supported Platforms/Implementations**:
150
- ///- Android native WebView
150
+ @SupportedPlatforms (platforms : [
151
+ AndroidPlatform ()
152
+ ])
151
153
bool ? hideTitleBar;
152
154
153
155
///Set the action bar's title.
154
- ///
155
- ///**Officially Supported Platforms/Implementations**:
156
- ///- Android native WebView
157
- ///- MacOS
156
+ @SupportedPlatforms (platforms: [
157
+ AndroidPlatform (),
158
+ MacOSPlatform (),
159
+ WindowsPlatform ()
160
+ ])
158
161
String ? toolbarTopFixedTitle;
159
162
160
163
///Set to `false` to not close the InAppBrowser when the user click on the Android back button and the WebView cannot go back to the history. The default value is `true` .
161
- ///
162
- ///**Officially Supported Platforms/Implementations**:
163
- ///- Android native WebView
164
+ @SupportedPlatforms (platforms : [
165
+ AndroidPlatform ()
166
+ ])
164
167
bool ? closeOnCannotGoBack;
165
168
166
169
///Set to `false` to block the InAppBrowser WebView going back when the user click on the Android back button. The default value is `true` .
167
- ///
168
- ///**Officially Supported Platforms/Implementations**:
169
- ///- Android native WebView
170
+ @SupportedPlatforms (platforms : [
171
+ AndroidPlatform ()
172
+ ])
170
173
bool ? allowGoBackWithBackButton;
171
174
172
175
///Set to `true` to close the InAppBrowser when the user click on the Android back button. The default value is `false` .
173
- ///
174
- ///**Officially Supported Platforms/Implementations**:
175
- ///- Android native WebView
176
+ @SupportedPlatforms (platforms : [
177
+ AndroidPlatform ()
178
+ ])
176
179
bool ? shouldCloseOnBackButtonPressed;
177
180
178
181
///Set to `true` to set the toolbar at the top translucent. The default value is `true` .
179
- ///
180
- ///**Officially Supported Platforms/Implementations**:
181
- ///- iOS
182
+ @SupportedPlatforms (platforms : [
183
+ IOSPlatform ()
184
+ ])
182
185
bool ? toolbarTopTranslucent;
183
186
184
187
///Set the tint color to apply to the navigation bar background.
185
- ///
186
- ///**Officially Supported Platforms/Implementations**:
187
- ///- iOS
188
+ @SupportedPlatforms (platforms : [
189
+ IOSPlatform ()
190
+ ])
188
191
Color_ ? toolbarTopBarTintColor;
189
192
190
193
///Set the tint color to apply to the navigation items and bar button items.
191
- ///
192
- ///**Officially Supported Platforms/Implementations**:
193
- ///- iOS
194
+ @SupportedPlatforms (platforms : [
195
+ IOSPlatform ()
196
+ ])
194
197
Color_ ? toolbarTopTintColor;
195
198
196
199
///Set to `true` to hide the toolbar at the bottom of the WebView. The default value is `false` .
197
- ///
198
- ///**Officially Supported Platforms/Implementations**:
199
- ///- iOS
200
+ @SupportedPlatforms (platforms : [
201
+ IOSPlatform ()
202
+ ])
200
203
bool ? hideToolbarBottom;
201
204
202
205
///Set the custom background color of the toolbar at the bottom.
203
- ///
204
- ///**Officially Supported Platforms/Implementations**:
205
- ///- iOS
206
+ @SupportedPlatforms (platforms : [
207
+ IOSPlatform ()
208
+ ])
206
209
Color_ ? toolbarBottomBackgroundColor;
207
210
208
211
///Set the tint color to apply to the bar button items.
209
- ///
210
- ///**Officially Supported Platforms/Implementations**:
211
- ///- iOS
212
+ @SupportedPlatforms (platforms : [
213
+ IOSPlatform ()
214
+ ])
212
215
Color_ ? toolbarBottomTintColor;
213
216
214
217
///Set to `true` to set the toolbar at the bottom translucent. The default value is `true` .
215
- ///
216
- ///**Officially Supported Platforms/Implementations**:
217
- ///- iOS
218
+ @SupportedPlatforms (platforms : [
219
+ IOSPlatform ()
220
+ ])
218
221
bool ? toolbarBottomTranslucent;
219
222
220
223
///Set the custom text for the close button.
221
- ///
222
- ///**Officially Supported Platforms/Implementations**:
223
- ///- iOS
224
+ @SupportedPlatforms (platforms : [
225
+ IOSPlatform ()
226
+ ])
224
227
String ? closeButtonCaption;
225
228
226
229
///Set the custom color for the close button.
227
- ///
228
- ///**Officially Supported Platforms/Implementations**:
229
- ///- iOS
230
+ @SupportedPlatforms (platforms : [
231
+ IOSPlatform ()
232
+ ])
230
233
Color_ ? closeButtonColor;
231
234
232
235
///Set to `true` to hide the close button. The default value is `false` .
233
- ///
234
- ///**Officially Supported Platforms/Implementations**:
235
- ///- iOS
236
+ @SupportedPlatforms (platforms : [
237
+ IOSPlatform ()
238
+ ])
236
239
bool ? hideCloseButton;
237
240
238
241
///Set the custom color for the menu button.
239
- ///
240
- ///**Officially Supported Platforms/Implementations**:
241
- ///- iOS
242
+ @SupportedPlatforms (platforms : [
243
+ IOSPlatform ()
244
+ ])
242
245
Color_ ? menuButtonColor;
243
246
244
247
///Set the custom modal presentation style when presenting the WebView. The default value is [ModalPresentationStyle.FULL_SCREEN] .
245
- ///
246
- ///**Officially Supported Platforms/Implementations**:
247
- ///- iOS
248
+ @SupportedPlatforms (platforms : [
249
+ IOSPlatform ()
250
+ ])
248
251
ModalPresentationStyle_ ? presentationStyle;
249
252
250
253
///Set to the custom transition style when presenting the WebView. The default value is [ModalTransitionStyle.COVER_VERTICAL] .
251
- ///
252
- ///**Officially Supported Platforms/Implementations**:
253
- ///- iOS
254
+ @SupportedPlatforms (platforms : [
255
+ IOSPlatform ()
256
+ ])
254
257
ModalTransitionStyle_ ? transitionStyle;
255
258
256
259
///How the browser window should be added to the main window.
257
260
///The default value is [WindowType.WINDOW] .
258
- ///
259
- ///**Officially Supported Platforms/Implementations**:
260
- ///- MacOS
261
+ @SupportedPlatforms (platforms: [
262
+ MacOSPlatform (),
263
+ WindowsPlatform ()
264
+ ])
261
265
WindowType_ ? windowType;
262
266
263
267
///The window’s alpha value.
264
268
///The default value is `1.0` .
265
- ///
266
- ///**Officially Supported Platforms/Implementations**:
267
- ///- MacOS
269
+ @SupportedPlatforms (platforms: [
270
+ MacOSPlatform (),
271
+ WindowsPlatform ()
272
+ ])
268
273
double ? windowAlphaValue;
269
274
270
275
///Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode.
271
- ///
272
- ///**Officially Supported Platforms/Implementations**:
273
- ///- MacOS
276
+ @SupportedPlatforms (platforms : [
277
+ MacOSPlatform ()
278
+ ])
274
279
WindowStyleMask_ ? windowStyleMask;
275
280
276
281
///The type of separator that the app displays between the title bar and content of a window.
277
- ///
278
- ///**NOTE for MacOS**: available on MacOS 11.0+.
279
- ///
280
- ///**Officially Supported Platforms/Implementations**:
281
- ///- MacOS
282
+ @SupportedPlatforms (platforms: [
283
+ MacOSPlatform (available: '11.0' )
284
+ ])
282
285
WindowTitlebarSeparatorStyle_ ? windowTitlebarSeparatorStyle;
283
286
284
287
///Sets the origin and size of the window’s frame rectangle according to a given frame rectangle,
285
288
///thereby setting its position and size onscreen.
286
- ///
287
- ///**Officially Supported Platforms/Implementations**:
288
- ///- MacOS
289
+ @SupportedPlatforms (platforms: [
290
+ MacOSPlatform (),
291
+ WindowsPlatform ()
292
+ ])
289
293
InAppWebViewRect_ ? windowFrame;
290
294
291
295
InAppBrowserSettings_ (
0 commit comments