Source code

Revision control

Other Tools

1
import android.app.Activity;
2
import android.content.Context;
3
import android.content.Intent;
4
import android.content.res.Configuration;
5
import android.graphics.Bitmap;
6
import android.graphics.Canvas;
7
import android.graphics.Matrix;
8
import android.graphics.Rect;
9
import android.graphics.RectF;
10
import android.graphics.Region;
11
import android.net.Uri;
12
import android.os.Bundle;
13
import android.os.Handler;
14
import android.os.Looper;
15
import android.os.Parcel;
16
import android.os.Parcelable;
17
import android.support.annotation.AnyThread;
18
import android.support.annotation.NonNull;
19
import android.support.annotation.Nullable;
20
import android.support.annotation.UiThread;
21
import android.util.AttributeSet;
22
import android.util.SparseArray;
23
import android.view.ActionMode;
24
import android.view.KeyEvent;
25
import android.view.Menu;
26
import android.view.MenuItem;
27
import android.view.MotionEvent;
28
import android.view.Surface;
29
import android.view.View;
30
import android.view.ViewStructure;
31
import android.view.autofill.AutofillValue;
32
import android.view.inputmethod.CursorAnchorInfo;
33
import android.view.inputmethod.EditorInfo;
34
import android.view.inputmethod.ExtractedText;
35
import android.view.inputmethod.ExtractedTextRequest;
36
import android.view.inputmethod.InputConnection;
37
import android.widget.FrameLayout;
38
import java.io.File;
39
import java.io.InputStream;
40
import java.lang.Boolean;
41
import java.lang.CharSequence;
42
import java.lang.Class;
43
import java.lang.Deprecated;
44
import java.lang.Exception;
45
import java.lang.Float;
46
import java.lang.Integer;
47
import java.lang.Long;
48
import java.lang.Object;
49
import java.lang.Runnable;
50
import java.lang.RuntimeException;
51
import java.lang.String;
52
import java.lang.Throwable;
53
import java.lang.Void;
54
import java.net.InetAddress;
55
import java.nio.ByteBuffer;
56
import java.security.cert.X509Certificate;
57
import java.util.AbstractSequentialList;
58
import java.util.Collection;
59
import java.util.List;
60
import java.util.Map;
61
import org.json.JSONObject;
62
import org.mozilla.geckoview.AllowOrDeny;
63
import org.mozilla.geckoview.Autofill;
64
import org.mozilla.geckoview.CompositorController;
65
import org.mozilla.geckoview.ContentBlocking;
66
import org.mozilla.geckoview.ContentBlockingController;
67
import org.mozilla.geckoview.DynamicToolbarAnimator;
68
import org.mozilla.geckoview.GeckoDisplay;
69
import org.mozilla.geckoview.GeckoResult;
70
import org.mozilla.geckoview.GeckoRuntime;
71
import org.mozilla.geckoview.GeckoRuntimeSettings;
72
import org.mozilla.geckoview.GeckoSession;
73
import org.mozilla.geckoview.GeckoSessionSettings;
74
import org.mozilla.geckoview.GeckoView;
75
import org.mozilla.geckoview.LoginStorage;
76
import org.mozilla.geckoview.MediaElement;
77
import org.mozilla.geckoview.OverscrollEdgeEffect;
78
import org.mozilla.geckoview.PanZoomController;
79
import org.mozilla.geckoview.RuntimeSettings;
80
import org.mozilla.geckoview.RuntimeTelemetry;
81
import org.mozilla.geckoview.ScreenLength;
82
import org.mozilla.geckoview.SessionAccessibility;
83
import org.mozilla.geckoview.SessionFinder;
84
import org.mozilla.geckoview.SessionTextInput;
85
import org.mozilla.geckoview.SlowScriptResponse;
86
import org.mozilla.geckoview.StorageController;
87
import org.mozilla.geckoview.WebExtension;
88
import org.mozilla.geckoview.WebExtensionController;
89
import org.mozilla.geckoview.WebMessage;
90
import org.mozilla.geckoview.WebNotification;
91
import org.mozilla.geckoview.WebNotificationDelegate;
92
import org.mozilla.geckoview.WebPushController;
93
import org.mozilla.geckoview.WebPushDelegate;
94
import org.mozilla.geckoview.WebPushSubscription;
95
import org.mozilla.geckoview.WebRequest;
96
import org.mozilla.geckoview.WebRequestError;
97
import org.mozilla.geckoview.WebResponse;
98
99
package org.mozilla.geckoview {
100
101
@AnyThread public final enum AllowOrDeny {
102
method public static AllowOrDeny valueOf(String);
103
method public static AllowOrDeny[] values();
104
enum_constant public static final AllowOrDeny ALLOW;
105
enum_constant public static final AllowOrDeny DENY;
106
}
107
108
public class Autofill {
109
ctor public Autofill();
110
}
111
112
public static interface Autofill.Delegate {
113
method @UiThread default public void onAutofill(@NonNull GeckoSession, int, @Nullable Autofill.Node);
114
}
115
116
public static final class Autofill.Hint {
117
method @AnyThread @Nullable public static String toString(int);
118
field public static final int EMAIL_ADDRESS = 0;
119
field public static final int NONE = -1;
120
field public static final int PASSWORD = 1;
121
field public static final int URI = 2;
122
field public static final int USERNAME = 3;
123
}
124
125
public static final class Autofill.InputType {
126
method @AnyThread @Nullable public static String toString(int);
127
field public static final int NONE = -1;
128
field public static final int NUMBER = 1;
129
field public static final int PHONE = 2;
130
field public static final int TEXT = 0;
131
}
132
133
public static final class Autofill.Node {
134
method @UiThread public void fillViewStructure(@NonNull View, @NonNull ViewStructure, int);
135
method @AnyThread @Nullable public String getAttribute(@NonNull String);
136
method @AnyThread @NonNull public Map<String,String> getAttributes();
137
method @AnyThread @NonNull public Collection<Autofill.Node> getChildren();
138
method @AnyThread @NonNull public Rect getDimensions();
139
method @AnyThread @NonNull public String getDomain();
140
method @AnyThread public boolean getEnabled();
141
method @AnyThread public boolean getFocusable();
142
method @AnyThread public boolean getFocused();
143
method @AnyThread public int getHint();
144
method @AnyThread public int getId();
145
method @AnyThread public int getInputType();
146
method @AnyThread @NonNull public String getTag();
147
method @AnyThread @NonNull public String getValue();
148
method @AnyThread public boolean getVisible();
149
}
150
151
public static final class Autofill.Notify {
152
method @AnyThread @Nullable public static String toString(int);
153
field public static final int NODE_ADDED = 3;
154
field public static final int NODE_BLURRED = 7;
155
field public static final int NODE_FOCUSED = 6;
156
field public static final int NODE_REMOVED = 4;
157
field public static final int NODE_UPDATED = 5;
158
field public static final int SESSION_CANCELED = 2;
159
field public static final int SESSION_COMMITTED = 1;
160
field public static final int SESSION_STARTED = 0;
161
}
162
163
public static final class Autofill.Session {
164
method @UiThread public void fillViewStructure(@NonNull View, @NonNull ViewStructure, int);
165
method @AnyThread @NonNull public Rect getDefaultDimensions();
166
method @AnyThread @NonNull public Autofill.Node getRoot();
167
}
168
169
@UiThread public class BasicSelectionActionDelegate implements ActionMode.Callback GeckoSession.SelectionActionDelegate {
170
ctor public BasicSelectionActionDelegate(@NonNull Activity);
171
ctor public BasicSelectionActionDelegate(@NonNull Activity, boolean);
172
method public boolean areExternalActionsEnabled();
173
method public void clearSelection();
174
method public void enableExternalActions(boolean);
175
method @Nullable public GeckoSession.SelectionActionDelegate.Selection getSelection();
176
method public boolean isActionAvailable();
177
method public void onGetContentRect(@Nullable ActionMode, @Nullable View, @NonNull Rect);
178
method @NonNull protected String[] getAllActions();
179
method protected boolean isActionAvailable(@NonNull String);
180
method protected boolean performAction(@NonNull String, @NonNull MenuItem);
181
method protected void prepareAction(@NonNull String, @NonNull MenuItem);
182
field protected static final String ACTION_PROCESS_TEXT = "android.intent.action.PROCESS_TEXT";
183
field @Nullable protected ActionMode mActionMode;
184
field @NonNull protected final Activity mActivity;
185
field protected boolean mRepopulatedMenu;
186
field @Nullable protected GeckoSession.SelectionActionDelegate.Selection mSelection;
187
field @Nullable protected GeckoSession mSession;
188
field @NonNull protected final Matrix mTempMatrix;
189
field @NonNull protected final RectF mTempRect;
190
field protected final boolean mUseFloatingToolbar;
191
}
192
193
@UiThread public final class CompositorController {
194
method public void addDrawCallback(@NonNull Runnable);
195
method public int getClearColor();
196
method @Nullable public Runnable getFirstPaintCallback();
197
method public void removeDrawCallback(@NonNull Runnable);
198
method public void setClearColor(int);
199
method public void setFirstPaintCallback(@Nullable Runnable);
200
}
201
202
@AnyThread public class ContentBlocking {
203
ctor public ContentBlocking();
204
}
205
206
public static class ContentBlocking.AntiTracking {
207
ctor protected AntiTracking();
208
field public static final int AD = 2;
209
field public static final int ANALYTIC = 4;
210
field public static final int CONTENT = 16;
211
field public static final int CRYPTOMINING = 64;
212
field public static final int DEFAULT = 46;
213
field public static final int FINGERPRINTING = 128;
214
field public static final int NONE = 0;
215
field public static final int SOCIAL = 8;
216
field public static final int STP = 256;
217
field public static final int STRICT = 254;
218
field public static final int TEST = 32;
219
}
220
221
public static class ContentBlocking.BlockEvent {
222
ctor public BlockEvent(@NonNull String, int, int, int, boolean);
223
method @UiThread public int getAntiTrackingCategory();
224
method @UiThread public int getCookieBehaviorCategory();
225
method @UiThread public int getSafeBrowsingCategory();
226
method @UiThread public boolean isBlocking();
227
field @NonNull public final String uri;
228
}
229
230
public static class ContentBlocking.CookieBehavior {
231
ctor protected CookieBehavior();
232
field public static final int ACCEPT_ALL = 0;
233
field public static final int ACCEPT_FIRST_PARTY = 1;
234
field public static final int ACCEPT_NONE = 2;
235
field public static final int ACCEPT_NON_TRACKERS = 4;
236
field public static final int ACCEPT_VISITED = 3;
237
}
238
239
public static class ContentBlocking.CookieLifetime {
240
ctor protected CookieLifetime();
241
field public static final int DAYS = 3;
242
field public static final int NORMAL = 0;
243
field public static final int RUNTIME = 2;
244
}
245
246
public static interface ContentBlocking.Delegate {
247
method @UiThread default public void onContentBlocked(@NonNull GeckoSession, @NonNull ContentBlocking.BlockEvent);
248
method @UiThread default public void onContentLoaded(@NonNull GeckoSession, @NonNull ContentBlocking.BlockEvent);
249
}
250
251
public static class ContentBlocking.EtpLevel {
252
ctor public EtpLevel();
253
field public static final int DEFAULT = 1;
254
field public static final int NONE = 0;
255
field public static final int STRICT = 2;
256
}
257
258
public static class ContentBlocking.SafeBrowsing {
259
ctor protected SafeBrowsing();
260
field public static final int DEFAULT = 15360;
261
field public static final int HARMFUL = 4096;
262
field public static final int MALWARE = 1024;
263
field public static final int NONE = 0;
264
field public static final int PHISHING = 8192;
265
field public static final int UNWANTED = 2048;
266
}
267
268
@AnyThread public static class ContentBlocking.Settings extends RuntimeSettings {
269
method public int getAntiTrackingCategories();
270
method public int getCookieBehavior();
271
method public int getCookieLifetime();
272
method public int getEnhancedTrackingProtectionLevel();
273
method public int getSafeBrowsingCategories();
274
method @NonNull public ContentBlocking.Settings setAntiTracking(int);
275
method @NonNull public ContentBlocking.Settings setCookieBehavior(int);
276
method @NonNull public ContentBlocking.Settings setCookieLifetime(int);
277
method @NonNull public ContentBlocking.Settings setEnhancedTrackingProtectionLevel(int);
278
method @NonNull public ContentBlocking.Settings setSafeBrowsing(int);
279
method @NonNull public ContentBlocking.Settings setStrictSocialTrackingProtection(boolean);
280
field public static final Parcelable.Creator<ContentBlocking.Settings> CREATOR;
281
}
282
283
@AnyThread public static class ContentBlocking.Settings.Builder extends RuntimeSettings.Builder {
284
ctor public Builder();
285
method @NonNull public ContentBlocking.Settings.Builder antiTracking(int);
286
method @NonNull public ContentBlocking.Settings.Builder cookieBehavior(int);
287
method @NonNull public ContentBlocking.Settings.Builder cookieLifetime(int);
288
method @NonNull public ContentBlocking.Settings.Builder enhancedTrackingProtectionLevel(int);
289
method @NonNull public ContentBlocking.Settings.Builder safeBrowsing(int);
290
method @NonNull protected ContentBlocking.Settings newSettings(@Nullable ContentBlocking.Settings);
291
}
292
293
@AnyThread public class ContentBlockingController {
294
ctor public ContentBlockingController();
295
method @UiThread public void addException(@NonNull GeckoSession);
296
method @UiThread @NonNull public GeckoResult<Boolean> checkException(@NonNull GeckoSession);
297
method @UiThread public void clearExceptionList();
298
method @UiThread @NonNull public GeckoResult<List<ContentBlockingController.LogEntry>> getLog(@NonNull GeckoSession);
299
method @UiThread public void removeException(@NonNull GeckoSession);
300
method @AnyThread public void removeException(@NonNull ContentBlockingController.ContentBlockingException);
301
method @Deprecated @UiThread public void restoreExceptionList(@NonNull ContentBlockingController.ExceptionList);
302
method @AnyThread public void restoreExceptionList(@NonNull List<ContentBlockingController.ContentBlockingException>);
303
method @UiThread @NonNull public GeckoResult<List<ContentBlockingController.ContentBlockingException>> saveExceptionList();
304
}
305
306
@AnyThread public static class ContentBlockingController.ContentBlockingException {
307
method @NonNull public static ContentBlockingController.ContentBlockingException fromJson(@NonNull JSONObject);
308
method @NonNull public JSONObject toJson();
309
field @NonNull public final String uri;
310
}
311
312
public static class ContentBlockingController.Event {
313
ctor protected Event();
314
field public static final int BLOCKED_CRYPTOMINING_CONTENT = 2048;
315
field public static final int BLOCKED_FINGERPRINTING_CONTENT = 64;
316
field public static final int BLOCKED_SOCIALTRACKING_CONTENT = 65536;
317
field public static final int BLOCKED_TRACKING_CONTENT = 4096;
318
field public static final int BLOCKED_UNSAFE_CONTENT = 16384;
319
field public static final int COOKIES_BLOCKED_ALL = 1073741824;
320
field public static final int COOKIES_BLOCKED_BY_PERMISSION = 268435456;
321
field public static final int COOKIES_BLOCKED_FOREIGN = 128;
322
field public static final int COOKIES_BLOCKED_SOCIALTRACKER = 16777216;
323
field public static final int COOKIES_BLOCKED_TRACKER = 536870912;
324
field public static final int COOKIES_LOADED = 32768;
325
field public static final int COOKIES_LOADED_SOCIALTRACKER = 524288;
326
field public static final int COOKIES_LOADED_TRACKER = 262144;
327
field public static final int COOKIES_PARTITIONED_FOREIGN = -2147483648;
328
field public static final int LOADED_CRYPTOMINING_CONTENT = 2097152;
329
field public static final int LOADED_FINGERPRINTING_CONTENT = 1024;
330
field public static final int LOADED_LEVEL_1_TRACKING_CONTENT = 8192;
331
field public static final int LOADED_LEVEL_2_TRACKING_CONTENT = 1048576;
332
field public static final int LOADED_SOCIALTRACKING_CONTENT = 131072;
333
}
334
335
@Deprecated @AnyThread public class ContentBlockingController.ExceptionList {
336
ctor public ExceptionList(@NonNull String);
337
ctor public ExceptionList(@NonNull JSONObject);
338
method @NonNull public String[] getUris();
339
method @NonNull public JSONObject toJson();
340
}
341
342
@AnyThread public static class ContentBlockingController.LogEntry {
343
ctor protected LogEntry();
344
field @NonNull public final List<ContentBlockingController.LogEntry.BlockingData> blockingData;
345
field @NonNull public final String origin;
346
}
347
348
public static class ContentBlockingController.LogEntry.BlockingData {
349
ctor protected BlockingData();
350
field public final boolean blocked;
351
field public final int category;
352
field public final int count;
353
}
354
355
public class CrashReporter {
356
ctor public CrashReporter();
357
method @AnyThread @NonNull public static GeckoResult<String> sendCrashReport(@NonNull Context, @NonNull Intent, @NonNull String);
358
method @AnyThread @NonNull public static GeckoResult<String> sendCrashReport(@NonNull Context, @NonNull Bundle, @NonNull String);
359
method @AnyThread @NonNull public static GeckoResult<String> sendCrashReport(@NonNull Context, @NonNull File, @NonNull File, @NonNull String);
360
method @AnyThread @NonNull public static GeckoResult<String> sendCrashReport(@NonNull String, @NonNull File, @NonNull JSONObject);
361
}
362
363
@UiThread public final class DynamicToolbarAnimator {
364
method @Nullable public DynamicToolbarAnimator.ToolbarChromeProxy getToolbarChromeProxy();
365
method public void hideToolbar(boolean);
366
method public boolean isPinned();
367
method public boolean isPinnedBy(@NonNull DynamicToolbarAnimator.PinReason);
368
method public void setMaxToolbarHeight(int);
369
method public void setPinned(boolean, @NonNull DynamicToolbarAnimator.PinReason);
370
method public void setToolbarChromeProxy(@Nullable DynamicToolbarAnimator.ToolbarChromeProxy);
371
method public void showToolbar(boolean);
372
}
373
374
@AnyThread public static final enum DynamicToolbarAnimator.PinReason {
375
method public static DynamicToolbarAnimator.PinReason valueOf(String);
376
method public static DynamicToolbarAnimator.PinReason[] values();
377
enum_constant public static final DynamicToolbarAnimator.PinReason ACTION_MODE;
378
enum_constant public static final DynamicToolbarAnimator.PinReason CARET_DRAG;
379
enum_constant public static final DynamicToolbarAnimator.PinReason CUSTOM_TAB;
380
enum_constant public static final DynamicToolbarAnimator.PinReason DISABLED;
381
enum_constant public static final DynamicToolbarAnimator.PinReason FULL_SCREEN;
382
enum_constant public static final DynamicToolbarAnimator.PinReason PAGE_LOADING;
383
enum_constant public static final DynamicToolbarAnimator.PinReason RELAYOUT;
384
field public final int value;
385
}
386
387
public static interface DynamicToolbarAnimator.ToolbarChromeProxy {
388
method @UiThread @Nullable default public Bitmap getBitmapOfToolbarChrome();
389
method @UiThread default public boolean isToolbarChromeVisible();
390
method @UiThread default public void toggleToolbarChrome(boolean);
391
}
392
393
public class GeckoDisplay {
394
ctor protected GeckoDisplay(GeckoSession);
395
method @UiThread @NonNull public GeckoResult<Bitmap> capturePixels();
396
method @UiThread public void screenOriginChanged(int, int);
397
method @UiThread @NonNull public GeckoDisplay.ScreenshotBuilder screenshot();
398
method @UiThread public void setDynamicToolbarMaxHeight(int);
399
method @UiThread public void setVerticalClipping(int);
400
method @UiThread public boolean shouldPinOnScreen();
401
method @UiThread public void surfaceChanged(@NonNull Surface, int, int);
402
method @UiThread public void surfaceChanged(@NonNull Surface, int, int, int, int);
403
method @UiThread public void surfaceDestroyed();
404
}
405
406
public static final class GeckoDisplay.ScreenshotBuilder {
407
method @AnyThread @NonNull public GeckoDisplay.ScreenshotBuilder aspectPreservingSize(int);
408
method @AnyThread @NonNull public GeckoDisplay.ScreenshotBuilder bitmap(@Nullable Bitmap);
409
method @UiThread @NonNull public GeckoResult<Bitmap> capture();
410
method @AnyThread @NonNull public GeckoDisplay.ScreenshotBuilder scale(float);
411
method @AnyThread @NonNull public GeckoDisplay.ScreenshotBuilder size(int, int);
412
method @AnyThread @NonNull public GeckoDisplay.ScreenshotBuilder source(int, int, int, int);
413
method @AnyThread @NonNull public GeckoDisplay.ScreenshotBuilder source(@NonNull Rect);
414
}
415
416
@AnyThread public class GeckoResult<T> {
417
ctor public GeckoResult();
418
ctor public GeckoResult(Handler);
419
ctor public GeckoResult(GeckoResult<T>);
420
method @NonNull public GeckoResult<Void> accept(@Nullable GeckoResult.Consumer<T>);
421
method @NonNull public GeckoResult<Void> accept(@Nullable GeckoResult.Consumer<T>, @Nullable GeckoResult.Consumer<Throwable>);
422
method @NonNull public static <V> GeckoResult<List<V>> allOf(@NonNull GeckoResult<V>);
423
method @NonNull public static <V> GeckoResult<List<V>> allOf(@Nullable List<GeckoResult<V>>);
424
method public synchronized void complete(@Nullable T);
425
method public synchronized void completeExceptionally(@NonNull Throwable);
426
method @NonNull public <U> GeckoResult<U> exceptionally(@NonNull GeckoResult.OnExceptionListener<U>);
427
method @NonNull public static <T> GeckoResult<T> fromException(@NonNull Throwable);
428
method @NonNull public static <U> GeckoResult<U> fromValue(@Nullable U);
429
method @Nullable public Looper getLooper();
430
method @Nullable public synchronized T poll();
431
method @Nullable public synchronized T poll(long);
432
method @NonNull public <U> GeckoResult<U> then(@NonNull GeckoResult.OnValueListener<T,U>);
433
method @NonNull public <U> GeckoResult<U> then(@Nullable GeckoResult.OnValueListener<T,U>, @Nullable GeckoResult.OnExceptionListener<U>);
434
method @NonNull public GeckoResult<T> withHandler(@Nullable Handler);
435
field public static final GeckoResult<AllowOrDeny> ALLOW;
436
field public static final GeckoResult<AllowOrDeny> DENY;
437
}
438
439
public static interface GeckoResult.Consumer<T> {
440
method @AnyThread public void accept(@Nullable T);
441
}
442
443
public static interface GeckoResult.OnExceptionListener<V> {
444
method @AnyThread @Nullable public GeckoResult<V> onException(@NonNull Throwable);
445
}
446
447
public static interface GeckoResult.OnValueListener<T,U> {
448
method @AnyThread @Nullable public GeckoResult<U> onValue(@Nullable T);
449
}
450
451
public static final class GeckoResult.UncaughtException extends RuntimeException {
452
ctor public UncaughtException(Throwable);
453
}
454
455
public final class GeckoRuntime implements Parcelable {
456
method @UiThread public void attachTo(@NonNull Context);
457
method @UiThread public void configurationChanged(@NonNull Configuration);
458
method @UiThread @NonNull public static GeckoRuntime create(@NonNull Context);
459
method @UiThread @NonNull public static GeckoRuntime create(@NonNull Context, @NonNull GeckoRuntimeSettings);
460
method @UiThread @NonNull public ContentBlockingController getContentBlockingController();
461
method @UiThread @NonNull public static synchronized GeckoRuntime getDefault(@NonNull Context);
462
method @UiThread @Nullable public GeckoRuntime.Delegate getDelegate();
463
method @UiThread @Nullable public LoginStorage.Delegate getLoginStorageDelegate();
464
method @UiThread @Nullable public File getProfileDir();
465
method @AnyThread @NonNull public GeckoRuntimeSettings getSettings();
466
method @UiThread @NonNull public StorageController getStorageController();
467
method @UiThread @NonNull public RuntimeTelemetry getTelemetry();
468
method @UiThread @NonNull public WebExtensionController getWebExtensionController();
469
method @UiThread @Nullable public WebNotificationDelegate getWebNotificationDelegate();
470
method @UiThread @NonNull public WebPushController getWebPushController();
471
method @UiThread public void orientationChanged();
472
method @UiThread public void orientationChanged(int);
473
method @AnyThread public void readFromParcel(@NonNull Parcel);
474
method @UiThread @NonNull public GeckoResult<Void> registerWebExtension(@NonNull WebExtension);
475
method @UiThread public void setDelegate(@Nullable GeckoRuntime.Delegate);
476
method @UiThread public void setLoginStorageDelegate(@Nullable LoginStorage.Delegate);
477
method @UiThread public void setServiceWorkerDelegate(@Nullable GeckoRuntime.ServiceWorkerDelegate);
478
method @UiThread public void setWebNotificationDelegate(@Nullable WebNotificationDelegate);
479
method @AnyThread public void shutdown();
480
method @UiThread @NonNull public GeckoResult<Void> unregisterWebExtension(@NonNull WebExtension);
481
field public static final String ACTION_CRASHED = "org.mozilla.gecko.ACTION_CRASHED";
482
field public static final Parcelable.Creator<GeckoRuntime> CREATOR;
483
field public static final String EXTRA_CRASH_FATAL = "fatal";
484
field public static final String EXTRA_EXTRAS_PATH = "extrasPath";
485
field public static final String EXTRA_MINIDUMP_PATH = "minidumpPath";
486
}
487
488
public static interface GeckoRuntime.Delegate {
489
method @UiThread public void onShutdown();
490
}
491
492
@UiThread public static interface GeckoRuntime.ServiceWorkerDelegate {
493
method @UiThread @NonNull public GeckoResult<GeckoSession> onOpenWindow(@NonNull String);
494
}
495
496
@AnyThread public final class GeckoRuntimeSettings extends RuntimeSettings {
497
method public boolean getAboutConfigEnabled();
498
method @NonNull public String[] getArguments();
499
method public boolean getAutomaticFontSizeAdjustment();
500
method public int getAutoplayDefault();
501
method @Nullable public String getConfigFilePath();
502
method public boolean getConsoleOutputEnabled();
503
method @NonNull public ContentBlocking.Settings getContentBlocking();
504
method @Nullable public Class<?> getCrashHandler();
505
method @Nullable public Float getDisplayDensityOverride();
506
method @Nullable public Integer getDisplayDpiOverride();
507
method public boolean getDoubleTapZoomingEnabled();
508
method @NonNull public Bundle getExtras();
509
method public boolean getFontInflationEnabled();
510
method public float getFontSizeFactor();
511
method public boolean getForceUserScalableEnabled();
512
method public int getGlMsaaLevel();
513
method public boolean getInputAutoZoomEnabled();
514
method public boolean getJavaScriptEnabled();
515
method @Nullable public String[] getLocales();
516
method public boolean getPauseForDebuggerEnabled();
517
method public int getPreferredColorScheme();
518
method public boolean getRemoteDebuggingEnabled();
519
method @Nullable public GeckoRuntime getRuntime();
520
method @Nullable public Rect getScreenSizeOverride();
521
method @Nullable public RuntimeTelemetry.Delegate getTelemetryDelegate();
522
method public boolean getUseContentProcessHint();
523
method public boolean getUseMaxScreenDepth();
524
method public boolean getWebFontsEnabled();
525
method @NonNull public GeckoRuntimeSettings setAboutConfigEnabled(boolean);
526
method @NonNull public GeckoRuntimeSettings setAutomaticFontSizeAdjustment(boolean);
527
method @NonNull public GeckoRuntimeSettings setAutoplayDefault(int);
528
method @NonNull public GeckoRuntimeSettings setConsoleOutputEnabled(boolean);
529
method @NonNull public GeckoRuntimeSettings setDoubleTapZoomingEnabled(boolean);
530
method @NonNull public GeckoRuntimeSettings setFontInflationEnabled(boolean);
531
method @NonNull public GeckoRuntimeSettings setFontSizeFactor(float);
532
method @NonNull public GeckoRuntimeSettings setForceUserScalableEnabled(boolean);
533
method @NonNull public GeckoRuntimeSettings setGlMsaaLevel(int);
534
method @NonNull public GeckoRuntimeSettings setInputAutoZoomEnabled(boolean);
535
method @NonNull public GeckoRuntimeSettings setJavaScriptEnabled(boolean);
536
method public void setLocales(@Nullable String[]);
537
method @NonNull public GeckoRuntimeSettings setPreferredColorScheme(int);
538
method @NonNull public GeckoRuntimeSettings setRemoteDebuggingEnabled(boolean);
539
method @NonNull public GeckoRuntimeSettings setWebFontsEnabled(boolean);
540
field public static final int AUTOPLAY_DEFAULT_ALLOWED = 0;
541
field public static final int AUTOPLAY_DEFAULT_BLOCKED = 1;
542
field public static final int COLOR_SCHEME_DARK = 1;
543
field public static final int COLOR_SCHEME_LIGHT = 0;
544
field public static final int COLOR_SCHEME_SYSTEM = -1;
545
field public static final Parcelable.Creator<GeckoRuntimeSettings> CREATOR;
546
}
547
548
@AnyThread public static final class GeckoRuntimeSettings.Builder extends RuntimeSettings.Builder {
549
ctor public Builder();
550
method @NonNull public GeckoRuntimeSettings.Builder aboutConfigEnabled(boolean);
551
method @NonNull public GeckoRuntimeSettings.Builder arguments(@NonNull String[]);
552
method @NonNull public GeckoRuntimeSettings.Builder automaticFontSizeAdjustment(boolean);
553
method @NonNull public GeckoRuntimeSettings.Builder autoplayDefault(int);
554
method @NonNull public GeckoRuntimeSettings.Builder configFilePath(@Nullable String);
555
method @NonNull public GeckoRuntimeSettings.Builder consoleOutput(boolean);
556
method @NonNull public GeckoRuntimeSettings.Builder contentBlocking(@NonNull ContentBlocking.Settings);
557
method @NonNull public GeckoRuntimeSettings.Builder crashHandler(@Nullable Class<?>);
558
method @NonNull public GeckoRuntimeSettings.Builder debugLogging(boolean);
559
method @NonNull public GeckoRuntimeSettings.Builder displayDensityOverride(float);
560
method @NonNull public GeckoRuntimeSettings.Builder displayDpiOverride(int);
561
method @NonNull public GeckoRuntimeSettings.Builder doubleTapZoomingEnabled(boolean);
562
method @NonNull public GeckoRuntimeSettings.Builder extras(@NonNull Bundle);
563
method @NonNull public GeckoRuntimeSettings.Builder fontInflation(boolean);
564
method @NonNull public GeckoRuntimeSettings.Builder fontSizeFactor(float);
565
method @NonNull public GeckoRuntimeSettings.Builder forceUserScalableEnabled(boolean);
566
method @NonNull public GeckoRuntimeSettings.Builder glMsaaLevel(int);
567
method @NonNull public GeckoRuntimeSettings.Builder inputAutoZoomEnabled(boolean);
568
method @NonNull public GeckoRuntimeSettings.Builder javaScriptEnabled(boolean);
569
method @NonNull public GeckoRuntimeSettings.Builder locales(@Nullable String[]);
570
method @NonNull public GeckoRuntimeSettings.Builder pauseForDebugger(boolean);
571
method @NonNull public GeckoRuntimeSettings.Builder preferredColorScheme(int);
572
method @NonNull public GeckoRuntimeSettings.Builder remoteDebuggingEnabled(boolean);
573
method @NonNull public GeckoRuntimeSettings.Builder screenSizeOverride(int, int);
574
method @NonNull public GeckoRuntimeSettings.Builder telemetryDelegate(@NonNull RuntimeTelemetry.Delegate);
575
method @NonNull public GeckoRuntimeSettings.Builder useContentProcessHint(boolean);
576
method @NonNull public GeckoRuntimeSettings.Builder useMaxScreenDepth(boolean);
577
method @NonNull public GeckoRuntimeSettings.Builder webFontsEnabled(boolean);
578
method @NonNull protected GeckoRuntimeSettings newSettings(@Nullable GeckoRuntimeSettings);
579
}
580
581
public class GeckoSession implements Parcelable {
582
ctor public GeckoSession();
583
ctor public GeckoSession(@Nullable GeckoSessionSettings);
584
method @UiThread @NonNull public GeckoDisplay acquireDisplay();
585
method @UiThread public void autofill(@NonNull SparseArray<CharSequence>);
586
method @UiThread public void close();
587
method @AnyThread @NonNull public static String createDataUri(@NonNull byte[], @Nullable String);
588
method @AnyThread @NonNull public static String createDataUri(@NonNull String, @Nullable String);
589
method @AnyThread public void exitFullScreen();
590
method @UiThread @NonNull public SessionAccessibility getAccessibility();
591
method @UiThread @Nullable public Autofill.Delegate getAutofillDelegate();
592
method @UiThread @NonNull public Autofill.Session getAutofillSession();
593
method @UiThread public void getClientBounds(@NonNull RectF);
594
method @UiThread public void getClientToScreenMatrix(@NonNull Matrix);
595
method @UiThread public void getClientToSurfaceMatrix(@NonNull Matrix);
596
method @UiThread @NonNull public CompositorController getCompositorController();
597
method @AnyThread @Nullable public ContentBlocking.Delegate getContentBlockingDelegate();
598
method @UiThread @Nullable public GeckoSession.ContentDelegate getContentDelegate();
599
method @AnyThread @NonNull public static String getDefaultUserAgent();
600
method @UiThread @NonNull public DynamicToolbarAnimator getDynamicToolbarAnimator();
601
method @AnyThread @NonNull public SessionFinder getFinder();
602
method @AnyThread @Nullable public GeckoSession.HistoryDelegate getHistoryDelegate();
603
method @AnyThread @Nullable public GeckoSession.MediaDelegate getMediaDelegate();
604
method @AnyThread @Nullable public WebExtension.MessageDelegate getMessageDelegate(@NonNull WebExtension, @NonNull String);
605
method @UiThread @Nullable public GeckoSession.NavigationDelegate getNavigationDelegate();
606
method @UiThread @NonNull public OverscrollEdgeEffect getOverscrollEdgeEffect();
607
method @UiThread public void getPageToScreenMatrix(@NonNull Matrix);
608
method @UiThread public void getPageToSurfaceMatrix(@NonNull Matrix);
609
method @UiThread @NonNull public PanZoomController getPanZoomController();
610
method @UiThread @Nullable public GeckoSession.PermissionDelegate getPermissionDelegate();
611
method @UiThread @Nullable public GeckoSession.ProgressDelegate getProgressDelegate();
612
method @AnyThread @Nullable public GeckoSession.PromptDelegate getPromptDelegate();
613
method @UiThread @Nullable public GeckoSession.ScrollDelegate getScrollDelegate();
614
method @AnyThread @Nullable public GeckoSession.SelectionActionDelegate getSelectionActionDelegate();
615
method @AnyThread @NonNull public GeckoSessionSettings getSettings();
616
method @UiThread public void getSurfaceBounds(@NonNull Rect);
617
method @AnyThread @NonNull public SessionTextInput getTextInput();
618
method @AnyThread @NonNull public GeckoResult<String> getUserAgent();
619
method @AnyThread @Nullable public WebExtension.ActionDelegate getWebExtensionActionDelegate(@NonNull WebExtension);
620
method @AnyThread public void goBack();
621
method @AnyThread public void goForward();
622
method @AnyThread public void gotoHistoryIndex(int);
623
method @AnyThread public boolean isOpen();
624
method @AnyThread public void loadData(@NonNull byte[], @Nullable String);
625
method @AnyThread public void loadString(@NonNull String, @Nullable String);
626
method @AnyThread public void loadUri(@NonNull String);
627
method @AnyThread public void loadUri(@NonNull String, @Nullable Map<String,String>);
628
method @AnyThread public void loadUri(@NonNull String, int);
629
method @AnyThread public void loadUri(@NonNull String, @Nullable String, int);
630
method @AnyThread public void loadUri(@NonNull String, @Nullable String, int, @Nullable Map<String,String>);
631
method @AnyThread public void loadUri(@NonNull String, @Nullable GeckoSession, int);
632
method @AnyThread public void loadUri(@NonNull String, @Nullable GeckoSession, int, @Nullable Map<String,String>);
633
method @AnyThread public void loadUri(@NonNull Uri);
634
method @AnyThread public void loadUri(@NonNull Uri, @Nullable Map<String,String>);
635
method @AnyThread public void loadUri(@NonNull Uri, int);
636
method @AnyThread public void loadUri(@NonNull Uri, @Nullable Uri, int);
637
method @AnyThread public void loadUri(@NonNull Uri, @Nullable Uri, int, @Nullable Map<String,String>);
638
method @UiThread public void open(@NonNull GeckoRuntime);
639
method @AnyThread public void purgeHistory();
640
method @AnyThread public void readFromParcel(@NonNull Parcel);
641
method @UiThread public void releaseDisplay(@NonNull GeckoDisplay);
642
method @AnyThread public void reload();
643
method @AnyThread public void restoreState(@NonNull GeckoSession.SessionState);
644
method @AnyThread public void setActive(boolean);
645
method @UiThread public void setAutofillDelegate(@Nullable Autofill.Delegate);
646
method @AnyThread public void setContentBlockingDelegate(@Nullable ContentBlocking.Delegate);
647
method @UiThread public void setContentDelegate(@Nullable GeckoSession.ContentDelegate);
648
method @AnyThread public void setFocused(boolean);
649
method @AnyThread public void setHistoryDelegate(@Nullable GeckoSession.HistoryDelegate);
650
method @AnyThread public void setMediaDelegate(@Nullable GeckoSession.MediaDelegate);
651
method @AnyThread public void setMessageDelegate(@NonNull WebExtension, @Nullable WebExtension.MessageDelegate, @NonNull String);
652
method @UiThread public void setNavigationDelegate(@Nullable GeckoSession.NavigationDelegate);
653
method @UiThread public void setPermissionDelegate(@Nullable GeckoSession.PermissionDelegate);
654
method @UiThread public void setProgressDelegate(@Nullable GeckoSession.ProgressDelegate);
655
method @AnyThread public void setPromptDelegate(@Nullable GeckoSession.PromptDelegate);
656
method @UiThread public void setScrollDelegate(@Nullable GeckoSession.ScrollDelegate);
657
method @UiThread public void setSelectionActionDelegate(@Nullable GeckoSession.SelectionActionDelegate);
658
method @AnyThread public void setWebExtensionActionDelegate(@NonNull WebExtension, @Nullable WebExtension.ActionDelegate);
659
method @AnyThread public void stop();
660
method @UiThread protected void setShouldPinOnScreen(boolean);
661
field public static final Parcelable.Creator<GeckoSession> CREATOR;
662
field public static final int FINDER_DISPLAY_DIM_PAGE = 2;
663
field public static final int FINDER_DISPLAY_DRAW_LINK_OUTLINE = 4;
664
field public static final int FINDER_DISPLAY_HIGHLIGHT_ALL = 1;
665
field public static final int FINDER_FIND_BACKWARDS = 1;
666
field public static final int FINDER_FIND_LINKS_ONLY = 8;
667
field public static final int FINDER_FIND_MATCH_CASE = 2;
668
field public static final int FINDER_FIND_WHOLE_WORD = 4;
669
field public static final int LOAD_FLAGS_ALLOW_POPUPS = 8;
670
field public static final int LOAD_FLAGS_BYPASS_CACHE = 1;
671
field public static final int LOAD_FLAGS_BYPASS_CLASSIFIER = 16;
672
field public static final int LOAD_FLAGS_BYPASS_PROXY = 2;
673
field public static final int LOAD_FLAGS_EXTERNAL = 4;
674
field public static final int LOAD_FLAGS_FORCE_ALLOW_DATA_URI = 32;
675
field public static final int LOAD_FLAGS_NONE = 0;
676
field public static final int LOAD_FLAGS_REPLACE_HISTORY = 64;
677
field @Nullable protected GeckoSession.Window mWindow;
678
}
679
680
public static interface GeckoSession.ContentDelegate {
681
method @UiThread default public void onCloseRequest(@NonNull GeckoSession);
682
method @UiThread default public void onContextMenu(@NonNull GeckoSession, int, int, @NonNull GeckoSession.ContentDelegate.ContextElement);
683
method @UiThread default public void onCrash(@NonNull GeckoSession);
684
method @UiThread default public void onExternalResponse(@NonNull GeckoSession, @NonNull GeckoSession.WebResponseInfo);
685
method @UiThread default public void onFirstComposite(@NonNull GeckoSession);
686
method @UiThread default public void onFirstContentfulPaint(@NonNull GeckoSession);
687
method @UiThread default public void onFocusRequest(@NonNull GeckoSession);
688
method @UiThread default public void onFullScreen(@NonNull GeckoSession, boolean);
689
method @UiThread default public void onKill(@NonNull GeckoSession);
690
method @UiThread default public void onMetaViewportFitChange(@NonNull GeckoSession, @NonNull String);
691
method @UiThread @Nullable default public GeckoResult<SlowScriptResponse> onSlowScript(@NonNull GeckoSession, @NonNull String);
692
method @UiThread default public void onTitleChange(@NonNull GeckoSession, @Nullable String);
693
method @UiThread default public void onWebAppManifest(@NonNull GeckoSession, @NonNull JSONObject);
694
}
695
696
public static class GeckoSession.ContentDelegate.ContextElement {
697
ctor protected ContextElement(@Nullable String, @Nullable String, @Nullable String, @Nullable String, @NonNull String, @Nullable String);
698
field public static final int TYPE_AUDIO = 3;
699
field public static final int TYPE_IMAGE = 1;
700
field public static final int TYPE_NONE = 0;
701
field public static final int TYPE_VIDEO = 2;
702
field @Nullable public final String altText;
703
field @Nullable public final String baseUri;
704
field @Nullable public final String linkUri;
705
field @Nullable public final String srcUri;
706
field @Nullable public final String title;
707
field public final int type;
708
}
709
710
@AnyThread public static class GeckoSession.FinderResult {
711
ctor protected FinderResult();
712
field @Nullable public final RectF clientRect;
713
field public final int current;
714
field public final int flags;
715
field public final boolean found;
716
field @Nullable public final String linkUri;
717
field @NonNull public final String searchString;
718
field public final int total;
719
field public final boolean wrapped;
720
}
721
722
public static interface GeckoSession.HistoryDelegate {
723
method @UiThread @Nullable default public GeckoResult<boolean[]> getVisited(@NonNull GeckoSession, @NonNull String[]);
724
method @UiThread default public void onHistoryStateChange(@NonNull GeckoSession, @NonNull GeckoSession.HistoryDelegate.HistoryList);
725
method @UiThread @Nullable default public GeckoResult<Boolean> onVisited(@NonNull GeckoSession, @NonNull String, @Nullable String, int);
726
field public static final int VISIT_REDIRECT_PERMANENT = 4;
727
field public static final int VISIT_REDIRECT_SOURCE = 8;
728
field public static final int VISIT_REDIRECT_SOURCE_PERMANENT = 16;
729
field public static final int VISIT_REDIRECT_TEMPORARY = 2;
730
field public static final int VISIT_TOP_LEVEL = 1;
731
field public static final int VISIT_UNRECOVERABLE_ERROR = 32;
732
}
733
734
public static interface GeckoSession.HistoryDelegate.HistoryItem {
735
method @AnyThread @NonNull default public String getTitle();
736
method @AnyThread @NonNull default public String getUri();
737
}
738
739
public static interface GeckoSession.HistoryDelegate.HistoryList implements List {
740
method @AnyThread default public int getCurrentIndex();
741
}
742
743
public static interface GeckoSession.MediaDelegate {
744
method @UiThread default public void onMediaAdd(@NonNull GeckoSession, @NonNull MediaElement);
745
method @UiThread default public void onMediaRemove(@NonNull GeckoSession, @NonNull MediaElement);
746
method @UiThread default public void onRecordingStatusChanged(@NonNull GeckoSession, @NonNull GeckoSession.MediaDelegate.RecordingDevice[]);
747
}
748
749
public static class GeckoSession.MediaDelegate.RecordingDevice {
750
ctor protected RecordingDevice();
751
field public final long status;
752
field public final long type;
753
}
754
755
public static class GeckoSession.MediaDelegate.RecordingDevice.Status {
756
ctor protected Status();
757
field public static final long INACTIVE = 1L;
758
field public static final long RECORDING = 0L;
759
}
760
761
public static class GeckoSession.MediaDelegate.RecordingDevice.Type {
762
ctor protected Type();
763
field public static final long CAMERA = 0L;
764
field public static final long MICROPHONE = 1L;
765
}
766
767
public static interface GeckoSession.NavigationDelegate {
768
method @UiThread default public void onCanGoBack(@NonNull GeckoSession, boolean);
769
method @UiThread default public void onCanGoForward(@NonNull GeckoSession, boolean);
770
method @UiThread @Nullable default public GeckoResult<String> onLoadError(@NonNull GeckoSession, @Nullable String, @NonNull WebRequestError);
771
method @UiThread @Nullable default public GeckoResult<AllowOrDeny> onLoadRequest(@NonNull GeckoSession, @NonNull GeckoSession.NavigationDelegate.LoadRequest);
772
method @UiThread default public void onLocationChange(@NonNull GeckoSession, @Nullable String);
773
method @UiThread @Nullable default public GeckoResult<GeckoSession> onNewSession(@NonNull GeckoSession, @NonNull String);
774
field public static final int LOAD_REQUEST_IS_REDIRECT = 8388608;
775
field public static final int TARGET_WINDOW_CURRENT = 1;
776
field public static final int TARGET_WINDOW_NEW = 2;
777
field public static final int TARGET_WINDOW_NONE = 0;
778
}
779
780
public static class GeckoSession.NavigationDelegate.LoadRequest {
781
ctor protected LoadRequest();
782
field public final boolean hasUserGesture;
783
field public final boolean isRedirect;
784
field public final int target;
785
field @Nullable public final String triggerUri;
786
field @NonNull public final String uri;
787
}
788
789
public static interface GeckoSession.PermissionDelegate {
790
method @UiThread default public void onAndroidPermissionsRequest(@NonNull GeckoSession, @Nullable String[], @NonNull GeckoSession.PermissionDelegate.Callback);
791
method @UiThread default public void onContentPermissionRequest(@NonNull GeckoSession, @Nullable String, int, @NonNull GeckoSession.PermissionDelegate.Callback);
792
method @UiThread default public void onMediaPermissionRequest(@NonNull GeckoSession, @NonNull String, @Nullable GeckoSession.PermissionDelegate.MediaSource[], @Nullable GeckoSession.PermissionDelegate.MediaSource[], @NonNull GeckoSession.PermissionDelegate.MediaCallback);
793
field public static final int PERMISSION_AUTOPLAY_AUDIBLE = 5;
794
field public static final int PERMISSION_AUTOPLAY_INAUDIBLE = 4;
795
field public static final int PERMISSION_DESKTOP_NOTIFICATION = 1;
796
field public static final int PERMISSION_GEOLOCATION = 0;
797
field public static final int PERMISSION_PERSISTENT_STORAGE = 2;
798
field public static final int PERMISSION_XR = 3;
799
}
800
801
public static interface GeckoSession.PermissionDelegate.Callback {
802
method @UiThread default public void grant();
803
method @UiThread default public void reject();
804
}
805
806
public static interface GeckoSession.PermissionDelegate.MediaCallback {
807
method @UiThread default public void grant(@Nullable String, @Nullable String);
808
method @UiThread default public void grant(@Nullable GeckoSession.PermissionDelegate.MediaSource, @Nullable GeckoSession.PermissionDelegate.MediaSource);
809
method @UiThread default public void reject();
810
}
811
812
public static class GeckoSession.PermissionDelegate.MediaSource {
813
ctor protected MediaSource();
814
field public static final int SOURCE_AUDIOCAPTURE = 3;
815
field public static final int SOURCE_CAMERA = 0;
816
field public static final int SOURCE_MICROPHONE = 2;
817
field public static final int SOURCE_OTHER = 4;
818
field public static final int SOURCE_SCREEN = 1;
819
field public static final int TYPE_AUDIO = 1;
820
field public static final int TYPE_VIDEO = 0;
821
field @NonNull public final String id;
822
field @Nullable public final String name;
823
field @NonNull public final String rawId;
824
field public final int source;
825
field public final int type;
826
}
827
828
public static interface GeckoSession.ProgressDelegate {
829
method @UiThread default public void onPageStart(@NonNull GeckoSession, @NonNull String);
830
method @UiThread default public void onPageStop(@NonNull GeckoSession, boolean);
831
method @UiThread default public void onProgressChange(@NonNull GeckoSession, int);
832
method @UiThread default public void onSecurityChange(@NonNull GeckoSession, @NonNull GeckoSession.ProgressDelegate.SecurityInformation);
833
method @UiThread default public void onSessionStateChange(@NonNull GeckoSession, @NonNull GeckoSession.SessionState);
834
}
835
836
public static class GeckoSession.ProgressDelegate.SecurityInformation {
837
ctor protected SecurityInformation();
838
field public static final int CONTENT_BLOCKED = 1;
839
field public static final int CONTENT_LOADED = 2;
840
field public static final int CONTENT_UNKNOWN = 0;
841
field public static final int SECURITY_MODE_IDENTIFIED = 1;
842
field public static final int SECURITY_MODE_UNKNOWN = 0;
843
field public static final int SECURITY_MODE_VERIFIED = 2;
844
field @Nullable public final X509Certificate certificate;
845
field @NonNull public final String host;
846
field public final boolean isException;
847
field public final boolean isSecure;
848
field public final int mixedModeActive;
849
field public final int mixedModePassive;
850
field @Nullable public final String origin;
851
field public final int securityMode;
852
}
853
854
public static interface GeckoSession.PromptDelegate {
855
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onAlertPrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.AlertPrompt);
856
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onAuthPrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.AuthPrompt);
857
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onButtonPrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.ButtonPrompt);
858
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onChoicePrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.ChoicePrompt);
859
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onColorPrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.ColorPrompt);
860
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onDateTimePrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.DateTimePrompt);
861
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onFilePrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.FilePrompt);
862
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onLoginStoragePrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.LoginStoragePrompt);
863
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onPopupPrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.PopupPrompt);
864
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onSharePrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.SharePrompt);
865
method @UiThread @Nullable default public GeckoResult<GeckoSession.PromptDelegate.PromptResponse> onTextPrompt(@NonNull GeckoSession, @NonNull GeckoSession.PromptDelegate.TextPrompt);
866
}
867
868
public static class GeckoSession.PromptDelegate.AlertPrompt extends GeckoSession.PromptDelegate.BasePrompt {
869
ctor protected AlertPrompt(@Nullable String, @Nullable String);
870
field @Nullable public final String message;
871
}
872
873
public static class GeckoSession.PromptDelegate.AuthPrompt extends GeckoSession.PromptDelegate.BasePrompt {
874
ctor protected AuthPrompt(@Nullable String, @Nullable String, @NonNull GeckoSession.PromptDelegate.AuthPrompt.AuthOptions);
875
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String);
876
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String, @NonNull String);
877
field @NonNull public final GeckoSession.PromptDelegate.AuthPrompt.AuthOptions authOptions;
878
field @Nullable public final String message;
879
}
880
881
public static class GeckoSession.PromptDelegate.AuthPrompt.AuthOptions {
882
ctor protected AuthOptions();
883
field public final int flags;
884
field public final int level;
885
field @Nullable public final String password;
886
field @Nullable public final String uri;
887
field @Nullable public final String username;
888
}
889
890
public static class GeckoSession.PromptDelegate.AuthPrompt.AuthOptions.Flags {
891
ctor protected Flags();
892
field public static final int CROSS_ORIGIN_SUB_RESOURCE = 32;
893
field public static final int HOST = 1;
894
field public static final int ONLY_PASSWORD = 8;
895
field public static final int PREVIOUS_FAILED = 16;
896
field public static final int PROXY = 2;
897
}
898
899
public static class GeckoSession.PromptDelegate.AuthPrompt.AuthOptions.Level {
900
ctor protected Level();
901
field public static final int NONE = 0;
902
field public static final int PW_ENCRYPTED = 1;
903
field public static final int SECURE = 2;
904
}
905
906
public static class GeckoSession.PromptDelegate.BasePrompt {
907
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse dismiss();
908
method @UiThread public boolean isComplete();
909
method @UiThread @NonNull protected GeckoSession.PromptDelegate.PromptResponse confirm();
910
field @Nullable public final String title;
911
}
912
913
public static class GeckoSession.PromptDelegate.ButtonPrompt extends GeckoSession.PromptDelegate.BasePrompt {
914
ctor protected ButtonPrompt(@Nullable String, @Nullable String);
915
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(int);
916
field @Nullable public final String message;
917
}
918
919
public static class GeckoSession.PromptDelegate.ButtonPrompt.Type {
920
ctor protected Type();
921
field public static final int NEGATIVE = 2;
922
field public static final int POSITIVE = 0;
923
}
924
925
public static class GeckoSession.PromptDelegate.ChoicePrompt extends GeckoSession.PromptDelegate.BasePrompt {
926
ctor protected ChoicePrompt(@Nullable String, @Nullable String, int, @NonNull GeckoSession.PromptDelegate.ChoicePrompt.Choice[]);
927
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String);
928
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String[]);
929
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull GeckoSession.PromptDelegate.ChoicePrompt.Choice);
930
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull GeckoSession.PromptDelegate.ChoicePrompt.Choice[]);
931
field @NonNull public final GeckoSession.PromptDelegate.ChoicePrompt.Choice[] choices;
932
field @Nullable public final String message;
933
field public final int type;
934
}
935
936
public static class GeckoSession.PromptDelegate.ChoicePrompt.Choice {
937
ctor protected Choice();
938
field public final boolean disabled;
939
field @Nullable public final String icon;
940
field @NonNull public final String id;
941
field @Nullable public final GeckoSession.PromptDelegate.ChoicePrompt.Choice[] items;
942
field @NonNull public final String label;
943
field public final boolean selected;
944
field public final boolean separator;
945
}
946
947
public static class GeckoSession.PromptDelegate.ChoicePrompt.Type {
948
ctor protected Type();
949
field public static final int MENU = 1;
950
field public static final int MULTIPLE = 3;
951
field public static final int SINGLE = 2;
952
}
953
954
public static class GeckoSession.PromptDelegate.ColorPrompt extends GeckoSession.PromptDelegate.BasePrompt {
955
ctor protected ColorPrompt(@Nullable String, @Nullable String);
956
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String);
957
field @Nullable public final String defaultValue;
958
}
959
960
public static class GeckoSession.PromptDelegate.DateTimePrompt extends GeckoSession.PromptDelegate.BasePrompt {
961
ctor protected DateTimePrompt(@Nullable String, int, @Nullable String, @Nullable String, @Nullable String);
962
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String);
963
field @Nullable public final String defaultValue;
964
field @Nullable public final String maxValue;
965
field @Nullable public final String minValue;
966
field public final int type;
967
}
968
969
public static class GeckoSession.PromptDelegate.DateTimePrompt.Type {
970
ctor protected Type();
971
field public static final int DATE = 1;
972
field public static final int DATETIME_LOCAL = 5;
973
field public static final int MONTH = 2;
974
field public static final int TIME = 4;
975
field public static final int WEEK = 3;
976
}
977
978
public static class GeckoSession.PromptDelegate.FilePrompt extends GeckoSession.PromptDelegate.BasePrompt {
979
ctor protected FilePrompt(@Nullable String, int, int, @Nullable String[]);
980
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull Context, @NonNull Uri);
981
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull Context, @NonNull Uri[]);
982
field public final int capture;
983
field @Nullable public final String[] mimeTypes;
984
field public final int type;
985
}
986
987
public static class GeckoSession.PromptDelegate.FilePrompt.Capture {
988
ctor protected Capture();
989
field public static final int ANY = 1;
990
field public static final int ENVIRONMENT = 3;
991
field public static final int NONE = 0;
992
field public static final int USER = 2;
993
}
994
995
public static class GeckoSession.PromptDelegate.FilePrompt.Type {
996
ctor protected Type();
997
field public static final int MULTIPLE = 2;
998
field public static final int SINGLE = 1;
999
}
1000
1001
public static class GeckoSession.PromptDelegate.LoginStoragePrompt extends GeckoSession.PromptDelegate.BasePrompt {
1002
ctor protected LoginStoragePrompt(int, int, @NonNull LoginStorage.LoginEntry[]);
1003
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull LoginStorage.LoginEntry);
1004
field public final int hint;
1005
field @NonNull public final LoginStorage.LoginEntry[] logins;
1006
field public final int type;
1007
}
1008
1009
public static class GeckoSession.PromptDelegate.LoginStoragePrompt.Hint {
1010
ctor protected Hint();
1011
field public static final int NONE = 0;
1012
}
1013
1014
public static class GeckoSession.PromptDelegate.LoginStoragePrompt.Type {
1015
ctor protected Type();
1016
field public static final int SAVE = 1;
1017
}
1018
1019
public static class GeckoSession.PromptDelegate.PopupPrompt extends GeckoSession.PromptDelegate.BasePrompt {
1020
ctor protected PopupPrompt(@Nullable String);
1021
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull AllowOrDeny);
1022
field @Nullable public final String targetUri;
1023
}
1024
1025
public static class GeckoSession.PromptDelegate.PromptResponse {
1026
}
1027
1028
public static class GeckoSession.PromptDelegate.SharePrompt extends GeckoSession.PromptDelegate.BasePrompt {
1029
ctor protected SharePrompt(@Nullable String, @Nullable String, @Nullable String);
1030
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(int);
1031
field @Nullable public final String text;
1032
field @Nullable public final String uri;
1033
}
1034
1035
public static class GeckoSession.PromptDelegate.SharePrompt.Result {
1036
ctor protected Result();
1037
field public static final int ABORT = 2;
1038
field public static final int FAILURE = 1;
1039
field public static final int SUCCESS = 0;
1040
}
1041
1042
public static class GeckoSession.PromptDelegate.TextPrompt extends GeckoSession.PromptDelegate.BasePrompt {
1043
ctor protected TextPrompt(@Nullable String, @Nullable String, @Nullable String);
1044
method @UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String);
1045
field @Nullable public final String defaultValue;
1046
field @Nullable public final String message;
1047
}
1048
1049
public static interface GeckoSession.ScrollDelegate {
1050
method @UiThread default public void onScrollChanged(@NonNull GeckoSession, int, int);
1051
}
1052
1053
public static interface GeckoSession.SelectionActionDelegate {
1054
method @UiThread default public void onHideAction(@NonNull GeckoSession, int);
1055
method @UiThread default public void onShowActionRequest(@NonNull GeckoSession, @NonNull GeckoSession.SelectionActionDelegate.Selection);
1056
field public static final String ACTION_COLLAPSE_TO_END = "org.mozilla.geckoview.COLLAPSE_TO_END";
1057
field public static final String ACTION_COLLAPSE_TO_START = "org.mozilla.geckoview.COLLAPSE_TO_START";
1058
field public static final String ACTION_COPY = "org.mozilla.geckoview.COPY";
1059
field public static final String ACTION_CUT = "org.mozilla.geckoview.CUT";
1060
field public static final String ACTION_DELETE = "org.mozilla.geckoview.DELETE";
1061
field public static final String ACTION_HIDE = "org.mozilla.geckoview.HIDE";
1062
field public static final String ACTION_PASTE = "org.mozilla.geckoview.PASTE";
1063
field public static final String ACTION_SELECT_ALL = "org.mozilla.geckoview.SELECT_ALL";
1064
field public static final String ACTION_UNSELECT = "org.mozilla.geckoview.UNSELECT";
1065
field public static final int FLAG_IS_COLLAPSED = 1;
1066
field public static final int FLAG_IS_EDITABLE = 2;
1067
field public static final int FLAG_IS_PASSWORD = 4;
1068
field public static final int HIDE_REASON_ACTIVE_SCROLL = 3;
1069
field public static final int HIDE_REASON_ACTIVE_SELECTION = 2;
1070
field public static final int HIDE_REASON_INVISIBLE_SELECTION = 1;
1071
field public static final int HIDE_REASON_NO_SELECTION = 0;
1072
}
1073
1074
public static class GeckoSession.SelectionActionDelegate.Selection {
1075
ctor protected Selection();
1076
method @AnyThread public void collapseToEnd();
1077
method @AnyThread public void collapseToStart();
1078
method @AnyThread public void copy();
1079
method @AnyThread public void cut();
1080
method @AnyThread public void delete();
1081
method @AnyThread public void execute(@NonNull String);
1082
method @AnyThread public void hide();
1083
method @AnyThread public boolean isActionAvailable(@NonNull String);
1084
method @AnyThread public void paste();
1085
method @AnyThread public void selectAll();
1086
method @AnyThread public void unselect();
1087
field @NonNull public final Collection<String> availableActions;
1088
field @Nullable public final RectF clientRect;
1089
field public final int flags;
1090
field @NonNull public final String text;
1091
}
1092
1093
@AnyThread public static class GeckoSession.SessionState extends AbstractSequentialList implements GeckoSession.HistoryDelegate.HistoryList Parcelable {
1094
ctor public SessionState(@NonNull GeckoSession.SessionState);
1095
method @NonNull public static GeckoSession.SessionState fromString(@NonNull String);
1096
method public void readFromParcel(@NonNull Parcel);
1097
field public static final Parcelable.Creator<GeckoSession.SessionState> CREATOR;
1098
}
1099
1100
public static interface GeckoSession.TextInputDelegate {
1101
method @UiThread default public void hideSoftInput(@NonNull GeckoSession);
1102
method @UiThread default public void restartInput(@NonNull GeckoSession, int);
1103
method @UiThread default public void showSoftInput(@NonNull GeckoSession);
1104
method @UiThread default public void updateCursorAnchorInfo(@NonNull GeckoSession, @NonNull CursorAnchorInfo);
1105
method @UiThread default public void updateExtractedText(@NonNull GeckoSession, @NonNull ExtractedTextRequest, @NonNull ExtractedText);
1106
method @UiThread default public void updateSelection(@NonNull GeckoSession, int, int, int, int);
1107
field public static final int RESTART_REASON_BLUR = 1;
1108
field public static final int RESTART_REASON_CONTENT_CHANGE = 2;
1109
field public static final int RESTART_REASON_FOCUS = 0;
1110
}
1111
1112
@AnyThread public static class GeckoSession.WebResponseInfo {
1113
ctor protected WebResponseInfo();
1114
field @Nullable public final long contentLength;
1115
field @Nullable public final String contentType;
1116
field @Nullable public final String filename;
1117
field @NonNull public final String uri;
1118
}
1119
1120
@AnyThread public final class GeckoSessionSettings implements Parcelable {
1121
ctor public GeckoSessionSettings();
1122
ctor public GeckoSessionSettings(@NonNull GeckoSessionSettings);
1123
method public boolean getAllowJavascript();
1124
method @Nullable public String getChromeUri();
1125
method @Nullable public String getContextId();
1126
method public int getDisplayMode();
1127
method public boolean getFullAccessibilityTree();
1128
method public int getScreenId();
1129
method public boolean getSuspendMediaWhenInactive();
1130
method public boolean getUseMultiprocess();
1131
method public boolean getUsePrivateMode();
1132
method public boolean getUseTrackingProtection();
1133
method public int getUserAgentMode();
1134
method @Nullable public String getUserAgentOverride();
1135
method public int getViewportMode();
1136
method public void readFromParcel(@NonNull Parcel);
1137
method public void setAllowJavascript(boolean);
1138
method public void setDisplayMode(int);
1139
method public void setFullAccessibilityTree(boolean);
1140
method public void setSuspendMediaWhenInactive(boolean);
1141
method public void setUseTrackingProtection(boolean);
1142
method public void setUserAgentMode(int);
1143
method public void setUserAgentOverride(@Nullable String);
1144
method public void setViewportMode(int);
1145
field public static final Parcelable.Creator<GeckoSessionSettings> CREATOR;
1146
field public static final int DISPLAY_MODE_BROWSER = 0;
1147
field public static final int DISPLAY_MODE_FULLSCREEN = 3;
1148
field public static final int DISPLAY_MODE_MINIMAL_UI = 1;
1149
field public static final int DISPLAY_MODE_STANDALONE = 2;
1150
field public static final int USER_AGENT_MODE_DESKTOP = 1;
1151
field public static final int USER_AGENT_MODE_MOBILE = 0;
1152
field public static final int USER_AGENT_MODE_VR = 2;
1153
field public static final int VIEWPORT_MODE_DESKTOP = 1;
1154
field public static final int VIEWPORT_MODE_MOBILE = 0;
1155
}
1156
1157
@AnyThread public static final class GeckoSessionSettings.Builder {
1158
ctor public Builder();
1159
ctor public Builder(GeckoSessionSettings);
1160
method @NonNull public GeckoSessionSettings.Builder allowJavascript(boolean);
1161
method @NonNull public GeckoSessionSettings build();
1162
method @NonNull public GeckoSessionSettings.Builder chromeUri(@NonNull String);
1163
method @NonNull public GeckoSessionSettings.Builder contextId(@Nullable String);
1164
method @NonNull public GeckoSessionSettings.Builder displayMode(int);
1165
method @NonNull public GeckoSessionSettings.Builder fullAccessibilityTree(boolean);
1166
method @NonNull public GeckoSessionSettings.Builder screenId(int);
1167
method @NonNull public GeckoSessionSettings.Builder suspendMediaWhenInactive(boolean);
1168
method @NonNull public GeckoSessionSettings.Builder useMultiprocess(boolean);
1169
method @NonNull public GeckoSessionSettings.Builder usePrivateMode(boolean);
1170
method @NonNull public GeckoSessionSettings.Builder useTrackingProtection(boolean);
1171
method @NonNull public GeckoSessionSettings.Builder userAgentMode(int);
1172
method @NonNull public GeckoSessionSettings.Builder userAgentOverride(@NonNull String);
1173
method @NonNull public GeckoSessionSettings.Builder viewportMode(int);
1174
}
1175
1176
public static class GeckoSessionSettings.Key<T> {
1177
}
1178
1179
public class GeckoVRManager {
1180
method @AnyThread public static synchronized void setExternalContext(long);
1181
}
1182
1183
@UiThread public class GeckoView extends FrameLayout {
1184
ctor public GeckoView(Context);
1185
ctor public GeckoView(Context, AttributeSet);
1186
method @UiThread @NonNull public GeckoResult<Bitmap> capturePixels();
1187
method public void coverUntilFirstPaint(int);
1188
method public boolean getAutofillEnabled();
1189
method @NonNull public DynamicToolbarAnimator getDynamicToolbarAnimator();
1190
method @NonNull public PanZoomController getPanZoomController();
1191
method @AnyThread @Nullable public GeckoSession getSession();
1192
method public int onGenericMotionEventForResult(@NonNull MotionEvent);
1193
method public int onTouchEventForResult(@NonNull MotionEvent);
1194
method @UiThread @Nullable public GeckoSession releaseSession();
1195
method public void setAutofillEnabled(boolean);
1196
method public void setDynamicToolbarMaxHeight(int);
1197
method @UiThread public void setSession(@NonNull GeckoSession);
1198
method public void setVerticalClipping(int);
1199
method public void setViewBackend(int);
1200
method public boolean shouldPinOnScreen();
1201
field public static final int BACKEND_SURFACE_VIEW = 1;
1202
field public static final int BACKEND_TEXTURE_VIEW = 2;
1203
field @NonNull protected final GeckoView.Display mDisplay;
1204
field @Nullable protected GeckoSession mSession;
1205
}
1206
1207
@AnyThread public class GeckoWebExecutor {
1208
ctor public GeckoWebExecutor(@NonNull GeckoRuntime);
1209
method @NonNull public GeckoResult<WebResponse> fetch(@NonNull WebRequest);
1210
method @NonNull public GeckoResult<WebResponse> fetch(@NonNull WebRequest, int);
1211
method @NonNull public GeckoResult<InetAddress[]> resolve(@NonNull String);
1212
method public void speculativeConnect(@NonNull String);
1213
field public static final int FETCH_FLAGS_ANONYMOUS = 1;
1214
field public static final int FETCH_FLAGS_NONE = 0;
1215
field public static final int FETCH_FLAGS_NO_REDIRECTS = 2;
1216
field public static final int FETCH_FLAGS_STREAM_FAILURE_TEST = 1024;
1217
}
1218
1219
public class LoginStorage {
1220
ctor public LoginStorage();
1221
}
1222
1223
public static interface LoginStorage.Delegate {
1224
method @UiThread @Nullable default public GeckoResult<LoginStorage.LoginEntry[]> onLoginFetch(@NonNull String);
1225
method @UiThread default public void onLoginSave(@NonNull LoginStorage.LoginEntry);
1226
}
1227
1228
public static class LoginStorage.LoginEntry {
1229
ctor @AnyThread protected LoginEntry();
1230
field @Nullable public final String formActionOrigin;
1231
field @Nullable public final String guid;
1232
field @Nullable public final String httpRealm;
1233
field @NonNull public final String origin;
1234
field @NonNull public final String password;
1235
field @NonNull public final String username;
1236
}
1237
1238
public static class LoginStorage.LoginEntry.Builder {
1239
ctor @AnyThread public Builder();
1240
method @AnyThread @NonNull public LoginStorage.LoginEntry build();
1241
method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder formActionOrigin(@Nullable String);
1242
method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder guid(@Nullable String);
1243
method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder httpRealm(@Nullable String);
1244
method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder origin(@NonNull String);
1245
method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder password(@NonNull String);
1246
method @AnyThread @NonNull public LoginStorage.LoginEntry.Builder username(@NonNull String);
1247
}
1248
1249
@AnyThread public class MediaElement {
1250
method @Nullable public MediaElement.Delegate getDelegate();
1251
method public void pause();
1252
method public void play();
1253
method public void seek(double);
1254
method public void setDelegate(@Nullable MediaElement.Delegate);
1255
method public void setMuted(boolean);
1256
method public void setPlaybackRate(double);
1257
method public void setVolume(double);
1258
field public static final int MEDIA_ERROR_ABORTED = 1;
1259
field public static final int MEDIA_ERROR_DECODE = 3;
1260
field public static final int MEDIA_ERROR_NETWORK = 2;
1261
field public static final int MEDIA_ERROR_NETWORK_NO_SOURCE = 0;
1262
field public static final int MEDIA_ERROR_SRC_NOT_SUPPORTED = 4;
1263
field public static final int MEDIA_READY_STATE_HAVE_CURRENT_DATA = 2;
1264
field public static final int MEDIA_READY_STATE_HAVE_ENOUGH_DATA = 4;
1265
field public static final int MEDIA_READY_STATE_HAVE_FUTURE_DATA = 3;
1266
field public static final int MEDIA_READY_STATE_HAVE_METADATA = 1;
1267
field public static final int MEDIA_READY_STATE_HAVE_NOTHING = 0;
1268
field public static final int MEDIA_STATE_ABORT = 9;
1269
field public static final int MEDIA_STATE_EMPTIED = 10;
1270
field public static final int MEDIA_STATE_ENDED = 3;
1271
field public static final int MEDIA_STATE_PAUSE = 2;
1272
field public static final int MEDIA_STATE_PLAY = 0;
1273
field public static final int MEDIA_STATE_PLAYING = 1;
1274
field public static final int MEDIA_STATE_SEEKED = 5;
1275
field public static final int MEDIA_STATE_SEEKING = 4;
1276
field public static final int MEDIA_STATE_STALLED = 6;
1277
field public static final int MEDIA_STATE_SUSPEND = 7;
1278
field public static final int MEDIA_STATE_WAITING = 8;
1279
field @Nullable protected MediaElement.Delegate mDelegate;
1280
field @NonNull protected final GeckoSession mSession;
1281
field protected final long mVideoId;
1282
}
1283
1284
public static interface MediaElement.Delegate {
1285
method @UiThread default public void onError(@NonNull MediaElement, int);
1286
method @UiThread default public void onFullscreenChange(@NonNull MediaElement, boolean);
1287
method @UiThread default public void onLoadProgress(@NonNull MediaElement, @NonNull MediaElement.LoadProgressInfo);
1288
method @UiThread default public void onMetadataChange(@NonNull MediaElement, @NonNull MediaElement.Metadata);
1289
method @UiThread default public void onPlaybackRateChange(@NonNull MediaElement, double);
1290
method @UiThread default public void onPlaybackStateChange(@NonNull MediaElement, int);
1291
method @UiThread default public void onReadyStateChange(@NonNull MediaElement, int);
1292
method @UiThread default public void onTimeChange(@NonNull MediaElement, double);
1293
method @UiThread default public void onVolumeChange(@NonNull MediaElement, double, boolean);
1294
}
1295
1296
public static class MediaElement.LoadProgressInfo {
1297
ctor protected LoadProgressInfo();
1298
field @Nullable public final MediaElement.LoadProgressInfo.TimeRange[] buffered;
1299
field public final long loadedBytes;
1300
field public final long totalBytes;
1301
}
1302
1303
public class MediaElement.LoadProgressInfo.TimeRange {
1304
ctor protected TimeRange(double, double);
1305
field public final double end;
1306
field public final double start;
1307
}
1308
1309
public static class MediaElement.Metadata {
1310
ctor protected Metadata();
1311
field public final int audioTrackCount;
1312
field @Nullable public final String currentSource;
1313
field public final double duration;
1314
field public final long height;
1315
field public final boolean isSeekable;
1316
field public final int videoTrackCount;
1317
field public final long width;
1318
}
1319
1320
@UiThread public final class OverscrollEdgeEffect {
1321
method public void draw(@NonNull Canvas);
1322
method @Nullable public Runnable getInvalidationCallback();
1323
method public void setInvalidationCallback(@Nullable Runnable);
1324
method public void setTheme(@NonNull Context);
1325
}
1326
1327
@UiThread public class PanZoomController {
1328
ctor protected PanZoomController(GeckoSession);
1329
method public float getScrollFactor();
1330
method public int onMotionEvent(@NonNull MotionEvent);
1331
method public int onMouseEvent(@NonNull MotionEvent);
1332
method public int onTouchEvent(@NonNull MotionEvent);
1333
method @UiThread public void scrollBy(@NonNull ScreenLength, @NonNull ScreenLength);
1334
method @UiThread public void scrollBy(@NonNull ScreenLength, @NonNull ScreenLength, int);
1335
method @UiThread public void scrollTo(@NonNull ScreenLength, @NonNull ScreenLength);
1336
method @UiThread public void scrollTo(@NonNull ScreenLength, @NonNull ScreenLength, int);
1337
method @UiThread public void scrollToBottom();
1338
method @UiThread public void scrollToTop();
1339
method public void setIsLongpressEnabled(boolean);
1340
method public void setScrollFactor(float);
1341
field public static final int INPUT_RESULT_HANDLED = 1;
1342
field public static final int INPUT_RESULT_HANDLED_CONTENT = 2;
1343
field public static final int INPUT_RESULT_UNHANDLED = 0;
1344
field public static final int SCROLL_BEHAVIOR_AUTO = 1;
1345
field public static final int SCROLL_BEHAVIOR_SMOOTH = 0;
1346
}
1347
1348
public abstract class RuntimeSettings implements Parcelable {
1349
ctor protected RuntimeSettings();
1350
ctor protected RuntimeSettings(@Nullable RuntimeSettings);
1351
method @AnyThread public void readFromParcel(@NonNull Parcel);
1352
method @AnyThread protected void updatePrefs(@NonNull RuntimeSettings);
1353
}
1354
1355
public abstract static class RuntimeSettings.Builder<Settings extends RuntimeSettings> {
1356
ctor public Builder();
1357
method @AnyThread @NonNull public Settings build();
1358
method @AnyThread @NonNull protected Settings getSettings();
1359
method @AnyThread @NonNull protected abstract Settings newSettings(@Nullable Settings);
1360
}
1361
1362
public final class RuntimeTelemetry {
1363
method @AnyThread @NonNull public GeckoResult<JSONObject> getSnapshots(boolean);
1364
}
1365
1366
public static interface RuntimeTelemetry.Delegate {
1367
method @AnyThread default public void onBooleanScalar(@NonNull RuntimeTelemetry.Metric<Boolean>);
1368
method @AnyThread default public void onHistogram(@NonNull RuntimeTelemetry.Histogram);
1369
method @AnyThread default public void onLongScalar(@NonNull RuntimeTelemetry.Metric<Long>);
1370
method @AnyThread default public void onStringScalar(@NonNull RuntimeTelemetry.Metric<String>);
1371
}
1372
1373
public static class RuntimeTelemetry.Histogram extends RuntimeTelemetry.Metric {
1374
ctor protected Histogram();
1375
field public final boolean isCategorical;
1376
}
1377
1378
public static class RuntimeTelemetry.Metric<T> {
1379
ctor protected Metric();
1380
field @NonNull public final String name;
1381
field @NonNull public final T value;
1382
}
1383
1384
public class ScreenLength {
1385
method @NonNull @AnyThread public static ScreenLength bottom();
1386
method @NonNull @AnyThread public static ScreenLength fromPixels(double);
1387
method @NonNull @AnyThread public static ScreenLength fromVisualViewportHeight(double);
1388
method @NonNull @AnyThread public static ScreenLength fromVisualViewportWidth(double);
1389
method @AnyThread public int getType();
1390
method @AnyThread public double getValue();
1391
method @NonNull @AnyThread public static ScreenLength top();
1392
method @NonNull @AnyThread public static ScreenLength zero();
1393
field public static final int DOCUMENT_HEIGHT = 4;
1394
field public static final int DOCUMENT_WIDTH = 3;
1395
field public static final int PIXEL = 0;
1396
field public static final int VISUAL_VIEWPORT_HEIGHT = 2;
1397
field public static final int VISUAL_VIEWPORT_WIDTH = 1;
1398
}
1399
1400
@UiThread public class SessionAccessibility {
1401
method @Nullable public View getView();
1402
method public boolean onMotionEvent(@NonNull MotionEvent);
1403
method @UiThread public void setView(@Nullable View);
1404
}
1405
1406
@AnyThread public final class SessionFinder {
1407
method public void clear();
1408
method @NonNull public GeckoResult<GeckoSession.FinderResult> find(@Nullable String, int);
1409
method public int getDisplayFlags();
1410
method public void setDisplayFlags(int);
1411
}
1412
1413
public final class SessionTextInput {
1414
method @UiThread @NonNull public GeckoSession.TextInputDelegate getDelegate();
1415
method @AnyThread @NonNull public synchronized Handler getHandler(@NonNull Handler);
1416
method @UiThread @Nullable public View getView();
1417
method @AnyThread @Nullable public synchronized InputConnection onCreateInputConnection(@NonNull EditorInfo);
1418
method @UiThread public boolean onKeyDown(int, @NonNull KeyEvent);
1419
method @UiThread public boolean onKeyLongPress(int, @NonNull KeyEvent);
1420
method @UiThread public boolean onKeyMultiple(int, int, @NonNull KeyEvent);
1421
method @UiThread public boolean onKeyPreIme(int, @NonNull KeyEvent);
1422
method @UiThread public boolean onKeyUp(int, @NonNull KeyEvent);
1423
method @UiThread public void setDelegate(@Nullable GeckoSession.TextInputDelegate);
1424
method @UiThread public synchronized void setView(@Nullable View);
1425
}
1426
1427
@AnyThread public final enum SlowScriptResponse {
1428
method public static SlowScriptResponse valueOf(String);
1429
method public static SlowScriptResponse[] values();
1430
enum_constant public static final SlowScriptResponse CONTINUE;
1431
enum_constant public static final SlowScriptResponse STOP;
1432
}
1433
1434
public final class StorageController {
1435
ctor public StorageController();
1436
method @AnyThread @NonNull public GeckoResult<Void> clearData(long);
1437
method @AnyThread public void clearDataForSessionContext(@NonNull String);
1438
method @AnyThread @NonNull public GeckoResult<Void> clearDataFromHost(@NonNull String, long);
1439
}
1440
1441
public static class StorageController.ClearFlags {
1442
ctor public ClearFlags();
1443
field public static final long ALL = 512L;
1444
field public static final long ALL_CACHES = 6L;
1445
field public static final long AUTH_SESSIONS = 32L;
1446
field public static final long COOKIES = 1L;
1447
field public static final long DOM_STORAGES = 16L;
1448
field public static final long IMAGE_CACHE = 4L;
1449
field public static final long NETWORK_CACHE = 2L;
1450
field public static final long PERMISSIONS = 64L;
1451
field public static final long SITE_DATA = 471L;
1452
field public static final long SITE_SETTINGS = 192L;
1453
}
1454
1455
public class WebExtension {
1456
ctor public WebExtension(@NonNull String, @NonNull String, long, @NonNull WebExtensionController);
1457
ctor public WebExtension(@NonNull String, @NonNull WebExtensionController);
1458
method @AnyThread public void setActionDelegate(@Nullable WebExtension.ActionDelegate);
1459
method @UiThread public void setMessageDelegate(@Nullable WebExtension.MessageDelegate, @NonNull String);
1460
field public final long flags;
1461
field @NonNull public final String id;
1462
field @NonNull public final String location;
1463
field @Nullable public final WebExtension.MetaData metaData;
1464
}
1465
1466
@AnyThread public static class WebExtension.Action {
1467
ctor protected Action();
1468
method @UiThread public void click();
1469
method @NonNull public WebExtension.Action withDefault(@NonNull WebExtension.Action);
1470
field @Nullable public final Integer badgeBackgroundColor;
1471
field @Nullable public final String badgeText;
1472
field @Nullable public final Integer badgeTextColor;
1473
field @Nullable public final Boolean enabled;
1474
field @Nullable public final WebExtension.Icon icon;
1475
field @Nullable public final String title;
1476
}
1477
1478
public static interface WebExtension.ActionDelegate {
1479
method @UiThread default public void onBrowserAction(@NonNull WebExtension, @Nullable GeckoSession, @NonNull WebExtension.Action);
1480
method @UiThread @Nullable default public GeckoResult<GeckoSession> onOpenPopup(@NonNull WebExtension, @NonNull WebExtension.Action);
1481
method @UiThread default public void onPageAction(@NonNull WebExtension, @Nullable GeckoSession, @NonNull WebExtension.Action);
1482
method @UiThread @Nullable default public GeckoResult<GeckoSession> onTogglePopup(@NonNull WebExtension, @NonNull WebExtension.Action);
1483
}
1484
1485
public static class WebExtension.BlocklistStateFlags {
1486
ctor public BlocklistStateFlags();
1487
field public static final int BLOCKED = 2;
1488
field public static final int NOT_BLOCKED = 0;
1489
field public static final int OUTDATED = 3;
1490
field public static final int SOFTBLOCKED = 1;
1491
field public static final int VULNERABLE_NO_UPDATE = 5;
1492
field public static final int VULNERABLE_UPDATE_AVAILABLE = 4;
1493
}
1494
1495
public static class WebExtension.DisabledFlags {
1496
ctor public DisabledFlags();
1497
field public static final int APP = 8;
1498
field public static final int BLOCKLIST = 4;
1499
field public static final int USER = 2;
1500
}
1501
1502
public static class WebExtension.Flags {
1503
ctor protected Flags();
1504
field public static final long ALLOW_CONTENT_MESSAGING = 1L;
1505
field public static final long NONE = 0L;
1506
}
1507
1508
public static class WebExtension.Icon {
1509
ctor protected Icon();
1510
method @AnyThread @NonNull public GeckoResult<Bitmap> get(int);
1511
}
1512
1513
public static class WebExtension.InstallException extends Exception {
1514
ctor protected InstallException();
1515
field public final int code;
1516
}
1517
1518
public static class WebExtension.InstallException.ErrorCodes {
1519
ctor protected ErrorCodes();
1520
field public static final int ERROR_CORRUPT_FILE = -3;
1521
field public static final int ERROR_FILE_ACCESS = -4;
1522
field public static final int ERROR_INCORRECT_HASH = -2;
1523
field public static final int ERROR_INCORRECT_ID = -7;
1524
field public static final int ERROR_NETWORK_FAILURE = -1;
1525
field public static final int ERROR_SIGNEDSTATE_REQUIRED = -5;
1526
field public static final int ERROR_UNEXPECTED_ADDON_TYPE = -6;
1527
}
1528
1529
@UiThread public static interface WebExtension.MessageDelegate {
1530
method @Nullable default public void onConnect(@NonNull WebExtension.Port);
1531
method @Nullable default public GeckoResult<Object> onMessage(@NonNull String, @NonNull Object, @NonNull WebExtension.MessageSender);
1532
}
1533
1534
@UiThread public static class WebExtension.MessageSender {
1535
ctor protected MessageSender();
1536
method public boolean isTopLevel();
1537
field public static final int ENV_TYPE_CONTENT_SCRIPT = 2;
1538
field public static final int ENV_TYPE_EXTENSION = 1;
1539
field public final int environmentType;
1540
field @Nullable public final GeckoSession session;
1541
field @NonNull public final String url;
1542
field @NonNull public final WebExtension webExtension;
1543
}
1544
1545
public class WebExtension.MetaData {
1546
ctor protected MetaData();
1547
field public final int blocklistState;
1548
field @Nullable public final String creatorName;
1549
field @Nullable public final String creatorUrl;
1550
field @Nullable public final String description;
1551
field public final int disabledFlags;
1552
field public final boolean enabled;
1553
field @Nullable public final String homepageUrl;
1554
field @NonNull public final WebExtension.Icon icon;
1555
field public final boolean isRecommended;
1556
field @Nullable public final String name;
1557
field @NonNull public final String[] origins;
1558
field @NonNull public final String[] permissions;
1559
field public final int signedState;
1560
field @NonNull public final String version;
1561
}
1562
1563
@UiThread public static class WebExtension.Port {
1564
ctor protected Port();
1565
method public void disconnect();
1566
method public void postMessage(@NonNull JSONObject);
1567
method public void setDelegate(@Nullable WebExtension.PortDelegate);
1568
field @NonNull public final String name;
1569
field @NonNull public final WebExtension.MessageSender sender;
1570
}
1571
1572
@UiThread public static interface WebExtension.PortDelegate {
1573
method @NonNull default public void onDisconnect(@NonNull WebExtension.Port);
1574
method default public void onPortMessage(@NonNull Object, @NonNull WebExtension.Port);
1575
}
1576
1577
public static class WebExtension.SignedStateFlags {
1578
ctor public SignedStateFlags();
1579
field public static final int MISSING = 0;
1580
field public static final int PRELIMINARY = 1;
1581
field public static final int PRIVILEGED = 4;
1582
field public static final int SIGNED = 2;
1583
field public static final int SYSTEM = 3;
1584
field public static final int UNKNOWN = -1;
1585
}
1586
1587
public class WebExtensionController {
1588
method @AnyThread @NonNull public GeckoResult<WebExtension> disable(@NonNull WebExtension, int);
1589
method @AnyThread @NonNull public GeckoResult<WebExtension> enable(@NonNull WebExtension, int);
1590
method @UiThread @Nullable public WebExtensionController.PromptDelegate getPromptDelegate();
1591
method @UiThread @Nullable public WebExtensionController.TabDelegate getTabDelegate();
1592
method @NonNull @AnyThread public GeckoResult<WebExtension> install(@NonNull String);
1593
method @AnyThread @NonNull public GeckoResult<List<WebExtension>> list();
1594
method @UiThread public void setPromptDelegate(@Nullable WebExtensionController.PromptDelegate);
1595
method @UiThread public void setTabDelegate(@Nullable WebExtensionController.TabDelegate);
1596
method @NonNull @AnyThread public GeckoResult<Void> uninstall(@NonNull WebExtension);
1597
}
1598
1599
public static class WebExtensionController.EnableSource {
1600
ctor public EnableSource();
1601
field public static final int APP = 2;
1602
field public static final int USER = 1;
1603
}
1604
1605
@UiThread public static interface WebExtensionController.PromptDelegate {
1606
method @Nullable default public GeckoResult<AllowOrDeny> onInstallPrompt(@NonNull WebExtension);
1607
}
1608
1609
public static interface WebExtensionController.TabDelegate {
1610
method @UiThread @NonNull default public GeckoResult<AllowOrDeny> onCloseTab(@Nullable WebExtension, @NonNull GeckoSession);
1611
method @UiThread @Nullable default public GeckoResult<GeckoSession> onNewTab(@Nullable WebExtension, @Nullable String);
1612
}
1613
1614
@AnyThread public abstract class WebMessage {
1615
ctor protected WebMessage(@NonNull WebMessage.Builder);
1616
field @NonNull public final Map<String,String> headers;
1617
field @NonNull public final String uri;
1618
}
1619
1620
@AnyThread public abstract static class WebMessage.Builder {
1621
method @NonNull public WebMessage.Builder addHeader(@NonNull String, @NonNull String);
1622
method @NonNull public WebMessage.Builder header(@NonNull String, @NonNull String);
1623
method @NonNull public WebMessage.Builder uri(@NonNull String);
1624
}
1625
1626
public class WebNotification {
1627
method @UiThread public void click();
1628
method @UiThread public void dismiss();
1629
field @Nullable public final String imageUrl;
1630
field @Nullable public final String lang;
1631
field @NonNull public final boolean requireInteraction;
1632
field @NonNull public final String tag;
1633
field @Nullable public final String text;
1634
field @Nullable public final String textDirection;
1635
field @Nullable public final String title;
1636
}
1637
1638
public interface WebNotificationDelegate {
1639
method @AnyThread default public void onCloseNotification(@NonNull WebNotification);
1640
method @AnyThread default public void onShowNotification(@NonNull WebNotification);
1641
}
1642
1643
public class WebPushController {
1644
method @UiThread public void onPushEvent(@NonNull String);
1645
method @UiThread public void onPushEvent(@NonNull String, @Nullable byte[]);
1646
method @UiThread public void onSubscriptionChanged(@NonNull WebPushSubscription);
1647
method @UiThread public void setDelegate(@Nullable WebPushDelegate);
1648
}
1649
1650
public interface WebPushDelegate {
1651
method @UiThread @Nullable default public GeckoResult<WebPushSubscription> onGetSubscription(@NonNull String);
1652
method @UiThread @Nullable default public GeckoResult<WebPushSubscription> onSubscribe(@NonNull String, @Nullable byte[]);
1653
method @UiThread @Nullable default public GeckoResult<Void> onUnsubscribe(@NonNull String);
1654
}
1655
1656
public class WebPushSubscription implements Parcelable {
1657
ctor public WebPushSubscription(@NonNull String, @NonNull String, @Nullable byte[], @NonNull byte[], @NonNull byte[]);
1658
field public static final Parcelable.Creator<WebPushSubscription> CREATOR;
1659
field @Nullable public final byte[] appServerKey;
1660
field @NonNull public final byte[] authSecret;
1661
field @NonNull public final byte[] browserPublicKey;
1662
field @NonNull public final String endpoint;
1663
field @NonNull public final String scope;
1664
}
1665
1666
@AnyThread public class WebRequest extends WebMessage {
1667
ctor public WebRequest(@NonNull String);
1668
field public static final int CACHE_MODE_DEFAULT = 1;
1669
field public static final int CACHE_MODE_FORCE_CACHE = 5;
1670
field public static final int CACHE_MODE_NO_CACHE = 4;
1671
field public static final int CACHE_MODE_NO_STORE = 2;
1672
field public static final int CACHE_MODE_ONLY_IF_CACHED = 6;
1673
field public static final int CACHE_MODE_RELOAD = 3;
1674
field @Nullable public final ByteBuffer body;
1675
field public final int cacheMode;
1676
field @NonNull public final String method;
1677
field @Nullable public final String referrer;
1678
}
1679
1680
@AnyThread public static class WebRequest.Builder extends WebMessage.Builder {
1681
ctor public Builder(@NonNull String);
1682
method @NonNull public WebRequest.Builder body(@Nullable ByteBuffer);
1683
method @NonNull public WebRequest build();
1684
method @NonNull public WebRequest.Builder cacheMode(int);
1685
method @NonNull public WebRequest.Builder method(@NonNull String);
1686
method @NonNull public WebRequest.Builder referrer(@Nullable String);
1687
}
1688
1689
@AnyThread public class WebRequestError extends Exception {
1690
ctor public WebRequestError(int, int);
1691
ctor public WebRequestError(int, int, X509Certificate);
1692
field public static final int ERROR_CATEGORY_CONTENT = 4;
1693
field public static final int ERROR_CATEGORY_NETWORK = 3;
1694
field public static final int ERROR_CATEGORY_PROXY = 6;
1695
field public static final int ERROR_CATEGORY_SAFEBROWSING = 7;
1696
field public static final int ERROR_CATEGORY_SECURITY = 2;
1697
field public static final int ERROR_CATEGORY_UNKNOWN = 1;
1698
field public static final int ERROR_CATEGORY_URI = 5;
1699
field public static final int ERROR_CONNECTION_REFUSED = 67;
1700
field public static final int ERROR_CONTENT_CRASHED = 68;
1701
field public static final int ERROR_CORRUPTED_CONTENT = 52;
1702
field public static final int ERROR_FILE_ACCESS_DENIED = 101;
1703
field public static final int ERROR_FILE_NOT_FOUND = 85;
1704
field public static final int ERROR_INVALID_CONTENT_ENCODING = 84;
1705
field public static final int ERROR_MALFORMED_URI = 53;
1706
field public static final int ERROR_NET_INTERRUPT = 35;
1707
field public static final int ERROR_NET_RESET = 147;
1708
field public static final int ERROR_NET_TIMEOUT = 51;
1709
field public static final int ERROR_OFFLINE = 115;
1710
field public static final int ERROR_PORT_BLOCKED = 131;
1711
field public static final int ERROR_PROXY_CONNECTION_REFUSED = 38;
1712
field public static final int ERROR_REDIRECT_LOOP = 99;
1713
field public static final int ERROR_SAFEBROWSING_HARMFUL_URI = 71;
1714
field public static final int ERROR_SAFEBROWSING_MALWARE_URI = 39;
1715
field public static final int ERROR_SAFEBROWSING_PHISHING_URI = 87;
1716
field public static final int ERROR_SAFEBROWSING_UNWANTED_URI = 55;
1717
field public static final int ERROR_SECURITY_BAD_CERT = 50;
1718
field public static final int ERROR_SECURITY_SSL = 34;
1719
field public static final int ERROR_UNKNOWN = 17;
1720
field public static final int ERROR_UNKNOWN_HOST = 37;
1721
field public static final int ERROR_UNKNOWN_PROTOCOL = 69;
1722
field public static final int ERROR_UNKNOWN_PROXY_HOST = 54;
1723
field public static final int ERROR_UNKNOWN_SOCKET_TYPE = 83;
1724
field public static final int ERROR_UNSAFE_CONTENT_TYPE = 36;
1725
field public final int category;
1726
field @Nullable public final X509Certificate certificate;
1727
field public final int code;
1728
}
1729
1730
@AnyThread public class WebResponse extends WebMessage {
1731
ctor protected WebResponse(@NonNull WebResponse.Builder);
1732
method public void setReadTimeoutMillis(long);
1733
field public static final long DEFAULT_READ_TIMEOUT_MS = 30000L;
1734
field @Nullable public final InputStream body;
1735
field @Nullable public final X509Certificate certificate;
1736
field public final boolean isSecure;
1737
field public final boolean redirected;
1738
field public final int statusCode;
1739
}
1740
1741
@AnyThread public static class WebResponse.Builder extends WebMessage.Builder {
1742
ctor public Builder(@NonNull String);
1743
method @NonNull public WebResponse.Builder body(@NonNull InputStream);
1744
method @NonNull public WebResponse build();
1745
method @NonNull public WebResponse.Builder certificate(@NonNull X509Certificate);
1746
method @NonNull public WebResponse.Builder isSecure(boolean);
1747
method @NonNull public WebResponse.Builder redirected(boolean);
1748
method @NonNull public WebResponse.Builder statusCode(int);
1749
}
1750
1751
}
1752