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