1 | export type RedirectEvent = {
|
2 | url: string;
|
3 | };
|
4 |
|
5 | export type WebBrowserWindowFeatures = Record<string, number | boolean | string>;
|
6 |
|
7 | export type WebBrowserOpenOptions = {
|
8 | |
9 |
|
10 |
|
11 | toolbarColor?: string;
|
12 | browserPackage?: string;
|
13 | |
14 |
|
15 |
|
16 | enableBarCollapsing?: boolean;
|
17 |
|
18 |
|
19 |
|
20 | |
21 |
|
22 |
|
23 | secondaryToolbarColor?: string;
|
24 | |
25 |
|
26 |
|
27 | showTitle?: boolean;
|
28 | enableDefaultShareMenuItem?: boolean;
|
29 | |
30 |
|
31 |
|
32 |
|
33 | showInRecents?: boolean;
|
34 |
|
35 |
|
36 | controlsColor?: string;
|
37 | dismissButtonStyle?: 'done' | 'close' | 'cancel';
|
38 | readerMode?: boolean;
|
39 |
|
40 | |
41 |
|
42 |
|
43 | windowName?: string;
|
44 | |
45 |
|
46 |
|
47 | windowFeatures?: string | WebBrowserWindowFeatures;
|
48 | };
|
49 |
|
50 | export type WebBrowserAuthSessionResult = WebBrowserRedirectResult | WebBrowserResult;
|
51 |
|
52 | export type WebBrowserCustomTabsResults = {
|
53 | defaultBrowserPackage?: string;
|
54 | preferredBrowserPackage?: string;
|
55 | browserPackages: string[];
|
56 | servicePackages: string[];
|
57 | };
|
58 |
|
59 | export enum WebBrowserResultType {
|
60 | |
61 |
|
62 |
|
63 | CANCEL = 'cancel',
|
64 | |
65 |
|
66 |
|
67 | DISMISS = 'dismiss',
|
68 | |
69 |
|
70 |
|
71 | OPENED = 'opened',
|
72 | LOCKED = 'locked',
|
73 | }
|
74 |
|
75 | export type WebBrowserResult = {
|
76 |
|
77 | type: WebBrowserResultType;
|
78 | };
|
79 |
|
80 | export type WebBrowserRedirectResult = {
|
81 | type: 'success';
|
82 | url: string;
|
83 | };
|
84 |
|
85 | export type ServiceActionResult = {
|
86 | servicePackage?: string;
|
87 | };
|
88 |
|
89 | export type WebBrowserMayInitWithUrlResult = ServiceActionResult;
|
90 | export type WebBrowserWarmUpResult = ServiceActionResult;
|
91 | export type WebBrowserCoolDownResult = ServiceActionResult;
|