@capgo/inappbrowser 7.2.9 → 7.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -95
- package/dist/docs.json +7 -634
- package/dist/esm/definitions.d.ts +5 -5
- package/dist/esm/definitions.js.map +1 -1
- package/ios/Plugin/InAppBrowserPlugin.swift +3 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -520,34 +520,34 @@ Reload the current web page.
|
|
|
520
520
|
|
|
521
521
|
#### OpenWebViewOptions
|
|
522
522
|
|
|
523
|
-
| Prop | Type
|
|
524
|
-
| -------------------------------------- |
|
|
525
|
-
| **`url`** | <code>string</code>
|
|
526
|
-
| **`headers`** | <code><a href="#headers">Headers</a></code>
|
|
527
|
-
| **`credentials`** | <code><a href="#credentials">Credentials</a></code>
|
|
528
|
-
| **`shareDisclaimer`** | <code><a href="#disclaimeroptions">DisclaimerOptions</a></code>
|
|
529
|
-
| **`toolbarType`** | <code><a href="#toolbartype">ToolBarType</a></code>
|
|
530
|
-
| **`shareSubject`** | <code>string</code>
|
|
531
|
-
| **`title`** | <code>string</code>
|
|
532
|
-
| **`backgroundColor`** | <code><a href="#backgroundcolor">BackgroundColor</a></code>
|
|
533
|
-
| **`activeNativeNavigationForWebview`** | <code>boolean</code>
|
|
534
|
-
| **`disableGoBackOnNativeApplication`** | <code>boolean</code>
|
|
535
|
-
| **`isPresentAfterPageLoad`** | <code>boolean</code>
|
|
536
|
-
| **`isInspectable`** | <code>boolean</code>
|
|
537
|
-
| **`isAnimated`** | <code>boolean</code>
|
|
538
|
-
| **`showReloadButton`** | <code>boolean</code>
|
|
539
|
-
| **`closeModal`** | <code>boolean</code>
|
|
540
|
-
| **`closeModalTitle`** | <code>string</code>
|
|
541
|
-
| **`closeModalDescription`** | <code>string</code>
|
|
542
|
-
| **`closeModalOk`** | <code>string</code>
|
|
543
|
-
| **`closeModalCancel`** | <code>string</code>
|
|
544
|
-
| **`visibleTitle`** | <code>boolean</code>
|
|
545
|
-
| **`toolbarColor`** | <code>string</code>
|
|
546
|
-
| **`showArrow`** | <code>boolean</code>
|
|
547
|
-
| **`ignoreUntrustedSSLError`** | <code>boolean</code>
|
|
548
|
-
| **`preShowScript`** | <code
|
|
549
|
-
| **`proxyRequests`** | <code
|
|
550
|
-
| **`buttonNearDone`** | <code>{ ios: { iconType: 'sf-symbol' \| 'asset'; icon:
|
|
523
|
+
| Prop | Type | Description | Default | Since |
|
|
524
|
+
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ------ |
|
|
525
|
+
| **`url`** | <code>string</code> | Target URL to load. | | 0.1.0 |
|
|
526
|
+
| **`headers`** | <code><a href="#headers">Headers</a></code> | <a href="#headers">Headers</a> to send with the request. | | 0.1.0 |
|
|
527
|
+
| **`credentials`** | <code><a href="#credentials">Credentials</a></code> | <a href="#credentials">Credentials</a> to send with the request and all subsequent requests for the same host. | | 6.1.0 |
|
|
528
|
+
| **`shareDisclaimer`** | <code><a href="#disclaimeroptions">DisclaimerOptions</a></code> | share options | | 0.1.0 |
|
|
529
|
+
| **`toolbarType`** | <code><a href="#toolbartype">ToolBarType</a></code> | Toolbar type | <code>ToolBarType.DEFAULT</code> | 0.1.0 |
|
|
530
|
+
| **`shareSubject`** | <code>string</code> | Share subject | | 0.1.0 |
|
|
531
|
+
| **`title`** | <code>string</code> | Title of the browser | <code>'New Window'</code> | 0.1.0 |
|
|
532
|
+
| **`backgroundColor`** | <code><a href="#backgroundcolor">BackgroundColor</a></code> | Background color of the browser, only on IOS | <code>BackgroundColor.BLACK</code> | 0.1.0 |
|
|
533
|
+
| **`activeNativeNavigationForWebview`** | <code>boolean</code> | If true, active the native navigation within the webview, Android only | <code>false</code> | |
|
|
534
|
+
| **`disableGoBackOnNativeApplication`** | <code>boolean</code> | Disable the possibility to go back on native application, usefull to force user to stay on the webview, Android only | <code>false</code> | |
|
|
535
|
+
| **`isPresentAfterPageLoad`** | <code>boolean</code> | Open url in a new window fullscreen isPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately. | <code>false</code> | 0.1.0 |
|
|
536
|
+
| **`isInspectable`** | <code>boolean</code> | Whether the website in the webview is inspectable or not, ios only | <code>false</code> | |
|
|
537
|
+
| **`isAnimated`** | <code>boolean</code> | Whether the webview opening is animated or not, ios only | <code>true</code> | |
|
|
538
|
+
| **`showReloadButton`** | <code>boolean</code> | Shows a reload button that reloads the web page | <code>false</code> | 1.0.15 |
|
|
539
|
+
| **`closeModal`** | <code>boolean</code> | CloseModal: if true a confirm will be displayed when user clicks on close button, if false the browser will be closed immediately. | <code>false</code> | 1.1.0 |
|
|
540
|
+
| **`closeModalTitle`** | <code>string</code> | CloseModalTitle: title of the confirm when user clicks on close button, only on IOS | <code>'Close'</code> | 1.1.0 |
|
|
541
|
+
| **`closeModalDescription`** | <code>string</code> | CloseModalDescription: description of the confirm when user clicks on close button, only on IOS | <code>'Are you sure you want to close this window?'</code> | 1.1.0 |
|
|
542
|
+
| **`closeModalOk`** | <code>string</code> | CloseModalOk: text of the confirm button when user clicks on close button, only on IOS | <code>'Close'</code> | 1.1.0 |
|
|
543
|
+
| **`closeModalCancel`** | <code>string</code> | CloseModalCancel: text of the cancel button when user clicks on close button, only on IOS | <code>'Cancel'</code> | 1.1.0 |
|
|
544
|
+
| **`visibleTitle`** | <code>boolean</code> | visibleTitle: if true the website title would be shown else shown empty | <code>true</code> | 1.2.5 |
|
|
545
|
+
| **`toolbarColor`** | <code>string</code> | toolbarColor: color of the toolbar in hex format | <code>'#ffffff''</code> | 1.2.5 |
|
|
546
|
+
| **`showArrow`** | <code>boolean</code> | showArrow: if true an arrow would be shown instead of cross for closing the window | <code>false</code> | 1.2.5 |
|
|
547
|
+
| **`ignoreUntrustedSSLError`** | <code>boolean</code> | ignoreUntrustedSSLError: if true, the webview will ignore untrusted SSL errors allowing the user to view the website. | <code>false</code> | 6.1.0 |
|
|
548
|
+
| **`preShowScript`** | <code>string</code> | preShowScript: if isPresentAfterPageLoad is true and this variable is set the plugin will inject a script before showing the browser. This script will be run in an async context. The plugin will wait for the script to finish (max 10 seconds) | | 6.6.0 |
|
|
549
|
+
| **`proxyRequests`** | <code>string</code> | proxyRequests is a regex expression. Please see [this pr](https://github.com/Cap-go/capacitor-inappbrowser/pull/222) for more info. (Android only) | | 6.9.0 |
|
|
550
|
+
| **`buttonNearDone`** | <code>{ ios: { iconType: 'sf-symbol' \| 'asset'; icon: string; }; android: { iconType: 'asset'; icon: string; width?: number; height?: number; }; }</code> | buttonNearDone allows for a creation of a custom button. Please see [buttonNearDone.md](/buttonNearDone.md) for more info. | | 6.7.0 |
|
|
551
551
|
|
|
552
552
|
|
|
553
553
|
#### DisclaimerOptions
|
|
@@ -560,72 +560,6 @@ Reload the current web page.
|
|
|
560
560
|
| **`cancelBtn`** | <code>string</code> |
|
|
561
561
|
|
|
562
562
|
|
|
563
|
-
#### String
|
|
564
|
-
|
|
565
|
-
Allows manipulation and formatting of text strings and determination and location of substrings within strings.
|
|
566
|
-
|
|
567
|
-
| Prop | Type | Description |
|
|
568
|
-
| ------------ | ------------------- | ------------------------------------------------------------ |
|
|
569
|
-
| **`length`** | <code>number</code> | Returns the length of a <a href="#string">String</a> object. |
|
|
570
|
-
|
|
571
|
-
| Method | Signature | Description |
|
|
572
|
-
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
573
|
-
| **toString** | () => string | Returns a string representation of a string. |
|
|
574
|
-
| **charAt** | (pos: number) => string | Returns the character at the specified index. |
|
|
575
|
-
| **charCodeAt** | (index: number) => number | Returns the Unicode value of the character at the specified location. |
|
|
576
|
-
| **concat** | (...strings: string[]) => string | Returns a string that contains the concatenation of two or more strings. |
|
|
577
|
-
| **indexOf** | (searchString: string, position?: number \| undefined) => number | Returns the position of the first occurrence of a substring. |
|
|
578
|
-
| **lastIndexOf** | (searchString: string, position?: number \| undefined) => number | Returns the last occurrence of a substring in the string. |
|
|
579
|
-
| **localeCompare** | (that: string) => number | Determines whether two strings are equivalent in the current locale. |
|
|
580
|
-
| **match** | (regexp: string \| <a href="#regexp">RegExp</a>) => <a href="#regexpmatcharray">RegExpMatchArray</a> \| null | Matches a string with a regular expression, and returns an array containing the results of that search. |
|
|
581
|
-
| **replace** | (searchValue: string \| <a href="#regexp">RegExp</a>, replaceValue: string) => string | Replaces text in a string, using a regular expression or search string. |
|
|
582
|
-
| **replace** | (searchValue: string \| <a href="#regexp">RegExp</a>, replacer: (substring: string, ...args: any[]) => string) => string | Replaces text in a string, using a regular expression or search string. |
|
|
583
|
-
| **search** | (regexp: string \| <a href="#regexp">RegExp</a>) => number | Finds the first substring match in a regular expression search. |
|
|
584
|
-
| **slice** | (start?: number \| undefined, end?: number \| undefined) => string | Returns a section of a string. |
|
|
585
|
-
| **split** | (separator: string \| <a href="#regexp">RegExp</a>, limit?: number \| undefined) => string[] | Split a string into substrings using the specified separator and return them as an array. |
|
|
586
|
-
| **substring** | (start: number, end?: number \| undefined) => string | Returns the substring at the specified location within a <a href="#string">String</a> object. |
|
|
587
|
-
| **toLowerCase** | () => string | Converts all the alphabetic characters in a string to lowercase. |
|
|
588
|
-
| **toLocaleLowerCase** | (locales?: string \| string[] \| undefined) => string | Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. |
|
|
589
|
-
| **toUpperCase** | () => string | Converts all the alphabetic characters in a string to uppercase. |
|
|
590
|
-
| **toLocaleUpperCase** | (locales?: string \| string[] \| undefined) => string | Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. |
|
|
591
|
-
| **trim** | () => string | Removes the leading and trailing white space and line terminator characters from a string. |
|
|
592
|
-
| **substr** | (from: number, length?: number \| undefined) => string | Gets a substring beginning at the specified location and having the specified length. |
|
|
593
|
-
| **valueOf** | () => string | Returns the primitive value of the specified object. |
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
#### RegExpMatchArray
|
|
597
|
-
|
|
598
|
-
| Prop | Type |
|
|
599
|
-
| ----------- | ------------------- |
|
|
600
|
-
| **`index`** | <code>number</code> |
|
|
601
|
-
| **`input`** | <code>string</code> |
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
#### RegExp
|
|
605
|
-
|
|
606
|
-
| Prop | Type | Description |
|
|
607
|
-
| ---------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
608
|
-
| **`source`** | <code>string</code> | Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. |
|
|
609
|
-
| **`global`** | <code>boolean</code> | Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. |
|
|
610
|
-
| **`ignoreCase`** | <code>boolean</code> | Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. |
|
|
611
|
-
| **`multiline`** | <code>boolean</code> | Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. |
|
|
612
|
-
| **`lastIndex`** | <code>number</code> | |
|
|
613
|
-
|
|
614
|
-
| Method | Signature | Description |
|
|
615
|
-
| ----------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
616
|
-
| **exec** | (string: string) => <a href="#regexpexecarray">RegExpExecArray</a> \| null | Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search. |
|
|
617
|
-
| **test** | (string: string) => boolean | Returns a Boolean value that indicates whether or not a pattern exists in a searched string. |
|
|
618
|
-
| **compile** | () => this | |
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
#### RegExpExecArray
|
|
622
|
-
|
|
623
|
-
| Prop | Type |
|
|
624
|
-
| ----------- | ------------------- |
|
|
625
|
-
| **`index`** | <code>number</code> |
|
|
626
|
-
| **`input`** | <code>string</code> |
|
|
627
|
-
|
|
628
|
-
|
|
629
563
|
#### PluginListenerHandle
|
|
630
564
|
|
|
631
565
|
| Prop | Type |
|
|
@@ -695,7 +629,7 @@ Construct a type with a set of properties K of type T
|
|
|
695
629
|
|
|
696
630
|
#### ButtonNearListener
|
|
697
631
|
|
|
698
|
-
<code>(state:
|
|
632
|
+
<code>(state: object): void</code>
|
|
699
633
|
|
|
700
634
|
|
|
701
635
|
#### ConfirmBtnListener
|
package/dist/docs.json
CHANGED
|
@@ -933,10 +933,8 @@
|
|
|
933
933
|
}
|
|
934
934
|
],
|
|
935
935
|
"docs": "preShowScript: if isPresentAfterPageLoad is true and this variable is set the plugin will inject a script before showing the browser.\nThis script will be run in an async context. The plugin will wait for the script to finish (max 10 seconds)",
|
|
936
|
-
"complexTypes": [
|
|
937
|
-
|
|
938
|
-
],
|
|
939
|
-
"type": "String"
|
|
936
|
+
"complexTypes": [],
|
|
937
|
+
"type": "string | undefined"
|
|
940
938
|
},
|
|
941
939
|
{
|
|
942
940
|
"name": "proxyRequests",
|
|
@@ -947,10 +945,8 @@
|
|
|
947
945
|
}
|
|
948
946
|
],
|
|
949
947
|
"docs": "proxyRequests is a regex expression. Please see [this pr](https://github.com/Cap-go/capacitor-inappbrowser/pull/222) for more info. (Android only)",
|
|
950
|
-
"complexTypes": [
|
|
951
|
-
|
|
952
|
-
],
|
|
953
|
-
"type": "String"
|
|
948
|
+
"complexTypes": [],
|
|
949
|
+
"type": "string | undefined"
|
|
954
950
|
},
|
|
955
951
|
{
|
|
956
952
|
"name": "buttonNearDone",
|
|
@@ -961,10 +957,8 @@
|
|
|
961
957
|
}
|
|
962
958
|
],
|
|
963
959
|
"docs": "buttonNearDone allows for a creation of a custom button. Please see [buttonNearDone.md](/buttonNearDone.md) for more info.",
|
|
964
|
-
"complexTypes": [
|
|
965
|
-
|
|
966
|
-
],
|
|
967
|
-
"type": "{ ios: { iconType: 'sf-symbol' | 'asset'; icon: String; }; android: { iconType: 'asset'; icon: String; width?: number | undefined; height?: number | undefined; }; } | undefined"
|
|
960
|
+
"complexTypes": [],
|
|
961
|
+
"type": "{ ios: { iconType: 'sf-symbol' | 'asset'; icon: string; }; android: { iconType: 'asset'; icon: string; width?: number | undefined; height?: number | undefined; }; } | undefined"
|
|
968
962
|
}
|
|
969
963
|
]
|
|
970
964
|
},
|
|
@@ -1005,627 +999,6 @@
|
|
|
1005
999
|
}
|
|
1006
1000
|
]
|
|
1007
1001
|
},
|
|
1008
|
-
{
|
|
1009
|
-
"name": "String",
|
|
1010
|
-
"slug": "string",
|
|
1011
|
-
"docs": "Allows manipulation and formatting of text strings and determination and location of substrings within strings.",
|
|
1012
|
-
"tags": [],
|
|
1013
|
-
"methods": [
|
|
1014
|
-
{
|
|
1015
|
-
"name": "toString",
|
|
1016
|
-
"signature": "() => string",
|
|
1017
|
-
"parameters": [],
|
|
1018
|
-
"returns": "string",
|
|
1019
|
-
"tags": [],
|
|
1020
|
-
"docs": "Returns a string representation of a string.",
|
|
1021
|
-
"complexTypes": [],
|
|
1022
|
-
"slug": "tostring"
|
|
1023
|
-
},
|
|
1024
|
-
{
|
|
1025
|
-
"name": "charAt",
|
|
1026
|
-
"signature": "(pos: number) => string",
|
|
1027
|
-
"parameters": [
|
|
1028
|
-
{
|
|
1029
|
-
"name": "pos",
|
|
1030
|
-
"docs": "The zero-based index of the desired character.",
|
|
1031
|
-
"type": "number"
|
|
1032
|
-
}
|
|
1033
|
-
],
|
|
1034
|
-
"returns": "string",
|
|
1035
|
-
"tags": [
|
|
1036
|
-
{
|
|
1037
|
-
"name": "param",
|
|
1038
|
-
"text": "pos The zero-based index of the desired character."
|
|
1039
|
-
}
|
|
1040
|
-
],
|
|
1041
|
-
"docs": "Returns the character at the specified index.",
|
|
1042
|
-
"complexTypes": [],
|
|
1043
|
-
"slug": "charat"
|
|
1044
|
-
},
|
|
1045
|
-
{
|
|
1046
|
-
"name": "charCodeAt",
|
|
1047
|
-
"signature": "(index: number) => number",
|
|
1048
|
-
"parameters": [
|
|
1049
|
-
{
|
|
1050
|
-
"name": "index",
|
|
1051
|
-
"docs": "The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",
|
|
1052
|
-
"type": "number"
|
|
1053
|
-
}
|
|
1054
|
-
],
|
|
1055
|
-
"returns": "number",
|
|
1056
|
-
"tags": [
|
|
1057
|
-
{
|
|
1058
|
-
"name": "param",
|
|
1059
|
-
"text": "index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned."
|
|
1060
|
-
}
|
|
1061
|
-
],
|
|
1062
|
-
"docs": "Returns the Unicode value of the character at the specified location.",
|
|
1063
|
-
"complexTypes": [],
|
|
1064
|
-
"slug": "charcodeat"
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
"name": "concat",
|
|
1068
|
-
"signature": "(...strings: string[]) => string",
|
|
1069
|
-
"parameters": [
|
|
1070
|
-
{
|
|
1071
|
-
"name": "strings",
|
|
1072
|
-
"docs": "The strings to append to the end of the string.",
|
|
1073
|
-
"type": "string[]"
|
|
1074
|
-
}
|
|
1075
|
-
],
|
|
1076
|
-
"returns": "string",
|
|
1077
|
-
"tags": [
|
|
1078
|
-
{
|
|
1079
|
-
"name": "param",
|
|
1080
|
-
"text": "strings The strings to append to the end of the string."
|
|
1081
|
-
}
|
|
1082
|
-
],
|
|
1083
|
-
"docs": "Returns a string that contains the concatenation of two or more strings.",
|
|
1084
|
-
"complexTypes": [],
|
|
1085
|
-
"slug": "concat"
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
"name": "indexOf",
|
|
1089
|
-
"signature": "(searchString: string, position?: number | undefined) => number",
|
|
1090
|
-
"parameters": [
|
|
1091
|
-
{
|
|
1092
|
-
"name": "searchString",
|
|
1093
|
-
"docs": "The substring to search for in the string",
|
|
1094
|
-
"type": "string"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"name": "position",
|
|
1098
|
-
"docs": "The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",
|
|
1099
|
-
"type": "number | undefined"
|
|
1100
|
-
}
|
|
1101
|
-
],
|
|
1102
|
-
"returns": "number",
|
|
1103
|
-
"tags": [
|
|
1104
|
-
{
|
|
1105
|
-
"name": "param",
|
|
1106
|
-
"text": "searchString The substring to search for in the string"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
"name": "param",
|
|
1110
|
-
"text": "position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string."
|
|
1111
|
-
}
|
|
1112
|
-
],
|
|
1113
|
-
"docs": "Returns the position of the first occurrence of a substring.",
|
|
1114
|
-
"complexTypes": [],
|
|
1115
|
-
"slug": "indexof"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
"name": "lastIndexOf",
|
|
1119
|
-
"signature": "(searchString: string, position?: number | undefined) => number",
|
|
1120
|
-
"parameters": [
|
|
1121
|
-
{
|
|
1122
|
-
"name": "searchString",
|
|
1123
|
-
"docs": "The substring to search for.",
|
|
1124
|
-
"type": "string"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
"name": "position",
|
|
1128
|
-
"docs": "The index at which to begin searching. If omitted, the search begins at the end of the string.",
|
|
1129
|
-
"type": "number | undefined"
|
|
1130
|
-
}
|
|
1131
|
-
],
|
|
1132
|
-
"returns": "number",
|
|
1133
|
-
"tags": [
|
|
1134
|
-
{
|
|
1135
|
-
"name": "param",
|
|
1136
|
-
"text": "searchString The substring to search for."
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
"name": "param",
|
|
1140
|
-
"text": "position The index at which to begin searching. If omitted, the search begins at the end of the string."
|
|
1141
|
-
}
|
|
1142
|
-
],
|
|
1143
|
-
"docs": "Returns the last occurrence of a substring in the string.",
|
|
1144
|
-
"complexTypes": [],
|
|
1145
|
-
"slug": "lastindexof"
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
"name": "localeCompare",
|
|
1149
|
-
"signature": "(that: string) => number",
|
|
1150
|
-
"parameters": [
|
|
1151
|
-
{
|
|
1152
|
-
"name": "that",
|
|
1153
|
-
"docs": "String to compare to target string",
|
|
1154
|
-
"type": "string"
|
|
1155
|
-
}
|
|
1156
|
-
],
|
|
1157
|
-
"returns": "number",
|
|
1158
|
-
"tags": [
|
|
1159
|
-
{
|
|
1160
|
-
"name": "param",
|
|
1161
|
-
"text": "that String to compare to target string"
|
|
1162
|
-
}
|
|
1163
|
-
],
|
|
1164
|
-
"docs": "Determines whether two strings are equivalent in the current locale.",
|
|
1165
|
-
"complexTypes": [],
|
|
1166
|
-
"slug": "localecompare"
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
"name": "match",
|
|
1170
|
-
"signature": "(regexp: string | RegExp) => RegExpMatchArray | null",
|
|
1171
|
-
"parameters": [
|
|
1172
|
-
{
|
|
1173
|
-
"name": "regexp",
|
|
1174
|
-
"docs": "A variable name or string literal containing the regular expression pattern and flags.",
|
|
1175
|
-
"type": "string | RegExp"
|
|
1176
|
-
}
|
|
1177
|
-
],
|
|
1178
|
-
"returns": "RegExpMatchArray | null",
|
|
1179
|
-
"tags": [
|
|
1180
|
-
{
|
|
1181
|
-
"name": "param",
|
|
1182
|
-
"text": "regexp A variable name or string literal containing the regular expression pattern and flags."
|
|
1183
|
-
}
|
|
1184
|
-
],
|
|
1185
|
-
"docs": "Matches a string with a regular expression, and returns an array containing the results of that search.",
|
|
1186
|
-
"complexTypes": [
|
|
1187
|
-
"RegExpMatchArray",
|
|
1188
|
-
"RegExp"
|
|
1189
|
-
],
|
|
1190
|
-
"slug": "match"
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
"name": "replace",
|
|
1194
|
-
"signature": "(searchValue: string | RegExp, replaceValue: string) => string",
|
|
1195
|
-
"parameters": [
|
|
1196
|
-
{
|
|
1197
|
-
"name": "searchValue",
|
|
1198
|
-
"docs": "A string to search for.",
|
|
1199
|
-
"type": "string | RegExp"
|
|
1200
|
-
},
|
|
1201
|
-
{
|
|
1202
|
-
"name": "replaceValue",
|
|
1203
|
-
"docs": "A string containing the text to replace for every successful match of searchValue in this string.",
|
|
1204
|
-
"type": "string"
|
|
1205
|
-
}
|
|
1206
|
-
],
|
|
1207
|
-
"returns": "string",
|
|
1208
|
-
"tags": [
|
|
1209
|
-
{
|
|
1210
|
-
"name": "param",
|
|
1211
|
-
"text": "searchValue A string to search for."
|
|
1212
|
-
},
|
|
1213
|
-
{
|
|
1214
|
-
"name": "param",
|
|
1215
|
-
"text": "replaceValue A string containing the text to replace for every successful match of searchValue in this string."
|
|
1216
|
-
}
|
|
1217
|
-
],
|
|
1218
|
-
"docs": "Replaces text in a string, using a regular expression or search string.",
|
|
1219
|
-
"complexTypes": [
|
|
1220
|
-
"RegExp"
|
|
1221
|
-
],
|
|
1222
|
-
"slug": "replace"
|
|
1223
|
-
},
|
|
1224
|
-
{
|
|
1225
|
-
"name": "replace",
|
|
1226
|
-
"signature": "(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string) => string",
|
|
1227
|
-
"parameters": [
|
|
1228
|
-
{
|
|
1229
|
-
"name": "searchValue",
|
|
1230
|
-
"docs": "A string to search for.",
|
|
1231
|
-
"type": "string | RegExp"
|
|
1232
|
-
},
|
|
1233
|
-
{
|
|
1234
|
-
"name": "replacer",
|
|
1235
|
-
"docs": "A function that returns the replacement text.",
|
|
1236
|
-
"type": "(substring: string, ...args: any[]) => string"
|
|
1237
|
-
}
|
|
1238
|
-
],
|
|
1239
|
-
"returns": "string",
|
|
1240
|
-
"tags": [
|
|
1241
|
-
{
|
|
1242
|
-
"name": "param",
|
|
1243
|
-
"text": "searchValue A string to search for."
|
|
1244
|
-
},
|
|
1245
|
-
{
|
|
1246
|
-
"name": "param",
|
|
1247
|
-
"text": "replacer A function that returns the replacement text."
|
|
1248
|
-
}
|
|
1249
|
-
],
|
|
1250
|
-
"docs": "Replaces text in a string, using a regular expression or search string.",
|
|
1251
|
-
"complexTypes": [
|
|
1252
|
-
"RegExp"
|
|
1253
|
-
],
|
|
1254
|
-
"slug": "replace"
|
|
1255
|
-
},
|
|
1256
|
-
{
|
|
1257
|
-
"name": "search",
|
|
1258
|
-
"signature": "(regexp: string | RegExp) => number",
|
|
1259
|
-
"parameters": [
|
|
1260
|
-
{
|
|
1261
|
-
"name": "regexp",
|
|
1262
|
-
"docs": "The regular expression pattern and applicable flags.",
|
|
1263
|
-
"type": "string | RegExp"
|
|
1264
|
-
}
|
|
1265
|
-
],
|
|
1266
|
-
"returns": "number",
|
|
1267
|
-
"tags": [
|
|
1268
|
-
{
|
|
1269
|
-
"name": "param",
|
|
1270
|
-
"text": "regexp The regular expression pattern and applicable flags."
|
|
1271
|
-
}
|
|
1272
|
-
],
|
|
1273
|
-
"docs": "Finds the first substring match in a regular expression search.",
|
|
1274
|
-
"complexTypes": [
|
|
1275
|
-
"RegExp"
|
|
1276
|
-
],
|
|
1277
|
-
"slug": "search"
|
|
1278
|
-
},
|
|
1279
|
-
{
|
|
1280
|
-
"name": "slice",
|
|
1281
|
-
"signature": "(start?: number | undefined, end?: number | undefined) => string",
|
|
1282
|
-
"parameters": [
|
|
1283
|
-
{
|
|
1284
|
-
"name": "start",
|
|
1285
|
-
"docs": "The index to the beginning of the specified portion of stringObj.",
|
|
1286
|
-
"type": "number | undefined"
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
"name": "end",
|
|
1290
|
-
"docs": "The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf this value is not specified, the substring continues to the end of stringObj.",
|
|
1291
|
-
"type": "number | undefined"
|
|
1292
|
-
}
|
|
1293
|
-
],
|
|
1294
|
-
"returns": "string",
|
|
1295
|
-
"tags": [
|
|
1296
|
-
{
|
|
1297
|
-
"name": "param",
|
|
1298
|
-
"text": "start The index to the beginning of the specified portion of stringObj."
|
|
1299
|
-
},
|
|
1300
|
-
{
|
|
1301
|
-
"name": "param",
|
|
1302
|
-
"text": "end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf this value is not specified, the substring continues to the end of stringObj."
|
|
1303
|
-
}
|
|
1304
|
-
],
|
|
1305
|
-
"docs": "Returns a section of a string.",
|
|
1306
|
-
"complexTypes": [],
|
|
1307
|
-
"slug": "slice"
|
|
1308
|
-
},
|
|
1309
|
-
{
|
|
1310
|
-
"name": "split",
|
|
1311
|
-
"signature": "(separator: string | RegExp, limit?: number | undefined) => string[]",
|
|
1312
|
-
"parameters": [
|
|
1313
|
-
{
|
|
1314
|
-
"name": "separator",
|
|
1315
|
-
"docs": "A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.",
|
|
1316
|
-
"type": "string | RegExp"
|
|
1317
|
-
},
|
|
1318
|
-
{
|
|
1319
|
-
"name": "limit",
|
|
1320
|
-
"docs": "A value used to limit the number of elements returned in the array.",
|
|
1321
|
-
"type": "number | undefined"
|
|
1322
|
-
}
|
|
1323
|
-
],
|
|
1324
|
-
"returns": "string[]",
|
|
1325
|
-
"tags": [
|
|
1326
|
-
{
|
|
1327
|
-
"name": "param",
|
|
1328
|
-
"text": "separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned."
|
|
1329
|
-
},
|
|
1330
|
-
{
|
|
1331
|
-
"name": "param",
|
|
1332
|
-
"text": "limit A value used to limit the number of elements returned in the array."
|
|
1333
|
-
}
|
|
1334
|
-
],
|
|
1335
|
-
"docs": "Split a string into substrings using the specified separator and return them as an array.",
|
|
1336
|
-
"complexTypes": [
|
|
1337
|
-
"RegExp"
|
|
1338
|
-
],
|
|
1339
|
-
"slug": "split"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
"name": "substring",
|
|
1343
|
-
"signature": "(start: number, end?: number | undefined) => string",
|
|
1344
|
-
"parameters": [
|
|
1345
|
-
{
|
|
1346
|
-
"name": "start",
|
|
1347
|
-
"docs": "The zero-based index number indicating the beginning of the substring.",
|
|
1348
|
-
"type": "number"
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
"name": "end",
|
|
1352
|
-
"docs": "Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf end is omitted, the characters from start through the end of the original string are returned.",
|
|
1353
|
-
"type": "number | undefined"
|
|
1354
|
-
}
|
|
1355
|
-
],
|
|
1356
|
-
"returns": "string",
|
|
1357
|
-
"tags": [
|
|
1358
|
-
{
|
|
1359
|
-
"name": "param",
|
|
1360
|
-
"text": "start The zero-based index number indicating the beginning of the substring."
|
|
1361
|
-
},
|
|
1362
|
-
{
|
|
1363
|
-
"name": "param",
|
|
1364
|
-
"text": "end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\r\nIf end is omitted, the characters from start through the end of the original string are returned."
|
|
1365
|
-
}
|
|
1366
|
-
],
|
|
1367
|
-
"docs": "Returns the substring at the specified location within a String object.",
|
|
1368
|
-
"complexTypes": [],
|
|
1369
|
-
"slug": "substring"
|
|
1370
|
-
},
|
|
1371
|
-
{
|
|
1372
|
-
"name": "toLowerCase",
|
|
1373
|
-
"signature": "() => string",
|
|
1374
|
-
"parameters": [],
|
|
1375
|
-
"returns": "string",
|
|
1376
|
-
"tags": [],
|
|
1377
|
-
"docs": "Converts all the alphabetic characters in a string to lowercase.",
|
|
1378
|
-
"complexTypes": [],
|
|
1379
|
-
"slug": "tolowercase"
|
|
1380
|
-
},
|
|
1381
|
-
{
|
|
1382
|
-
"name": "toLocaleLowerCase",
|
|
1383
|
-
"signature": "(locales?: string | string[] | undefined) => string",
|
|
1384
|
-
"parameters": [
|
|
1385
|
-
{
|
|
1386
|
-
"name": "locales",
|
|
1387
|
-
"docs": "",
|
|
1388
|
-
"type": "string | string[] | undefined"
|
|
1389
|
-
}
|
|
1390
|
-
],
|
|
1391
|
-
"returns": "string",
|
|
1392
|
-
"tags": [],
|
|
1393
|
-
"docs": "Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",
|
|
1394
|
-
"complexTypes": [],
|
|
1395
|
-
"slug": "tolocalelowercase"
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
"name": "toUpperCase",
|
|
1399
|
-
"signature": "() => string",
|
|
1400
|
-
"parameters": [],
|
|
1401
|
-
"returns": "string",
|
|
1402
|
-
"tags": [],
|
|
1403
|
-
"docs": "Converts all the alphabetic characters in a string to uppercase.",
|
|
1404
|
-
"complexTypes": [],
|
|
1405
|
-
"slug": "touppercase"
|
|
1406
|
-
},
|
|
1407
|
-
{
|
|
1408
|
-
"name": "toLocaleUpperCase",
|
|
1409
|
-
"signature": "(locales?: string | string[] | undefined) => string",
|
|
1410
|
-
"parameters": [
|
|
1411
|
-
{
|
|
1412
|
-
"name": "locales",
|
|
1413
|
-
"docs": "",
|
|
1414
|
-
"type": "string | string[] | undefined"
|
|
1415
|
-
}
|
|
1416
|
-
],
|
|
1417
|
-
"returns": "string",
|
|
1418
|
-
"tags": [],
|
|
1419
|
-
"docs": "Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",
|
|
1420
|
-
"complexTypes": [],
|
|
1421
|
-
"slug": "tolocaleuppercase"
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"name": "trim",
|
|
1425
|
-
"signature": "() => string",
|
|
1426
|
-
"parameters": [],
|
|
1427
|
-
"returns": "string",
|
|
1428
|
-
"tags": [],
|
|
1429
|
-
"docs": "Removes the leading and trailing white space and line terminator characters from a string.",
|
|
1430
|
-
"complexTypes": [],
|
|
1431
|
-
"slug": "trim"
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
"name": "substr",
|
|
1435
|
-
"signature": "(from: number, length?: number | undefined) => string",
|
|
1436
|
-
"parameters": [
|
|
1437
|
-
{
|
|
1438
|
-
"name": "from",
|
|
1439
|
-
"docs": "The starting position of the desired substring. The index of the first character in the string is zero.",
|
|
1440
|
-
"type": "number"
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
"name": "length",
|
|
1444
|
-
"docs": "The number of characters to include in the returned substring.",
|
|
1445
|
-
"type": "number | undefined"
|
|
1446
|
-
}
|
|
1447
|
-
],
|
|
1448
|
-
"returns": "string",
|
|
1449
|
-
"tags": [
|
|
1450
|
-
{
|
|
1451
|
-
"name": "param",
|
|
1452
|
-
"text": "from The starting position of the desired substring. The index of the first character in the string is zero."
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
"name": "param",
|
|
1456
|
-
"text": "length The number of characters to include in the returned substring."
|
|
1457
|
-
}
|
|
1458
|
-
],
|
|
1459
|
-
"docs": "Gets a substring beginning at the specified location and having the specified length.",
|
|
1460
|
-
"complexTypes": [],
|
|
1461
|
-
"slug": "substr"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"name": "valueOf",
|
|
1465
|
-
"signature": "() => string",
|
|
1466
|
-
"parameters": [],
|
|
1467
|
-
"returns": "string",
|
|
1468
|
-
"tags": [],
|
|
1469
|
-
"docs": "Returns the primitive value of the specified object.",
|
|
1470
|
-
"complexTypes": [],
|
|
1471
|
-
"slug": "valueof"
|
|
1472
|
-
}
|
|
1473
|
-
],
|
|
1474
|
-
"properties": [
|
|
1475
|
-
{
|
|
1476
|
-
"name": "length",
|
|
1477
|
-
"tags": [],
|
|
1478
|
-
"docs": "Returns the length of a String object.",
|
|
1479
|
-
"complexTypes": [],
|
|
1480
|
-
"type": "number"
|
|
1481
|
-
}
|
|
1482
|
-
]
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
"name": "RegExpMatchArray",
|
|
1486
|
-
"slug": "regexpmatcharray",
|
|
1487
|
-
"docs": "",
|
|
1488
|
-
"tags": [],
|
|
1489
|
-
"methods": [],
|
|
1490
|
-
"properties": [
|
|
1491
|
-
{
|
|
1492
|
-
"name": "index",
|
|
1493
|
-
"tags": [],
|
|
1494
|
-
"docs": "",
|
|
1495
|
-
"complexTypes": [],
|
|
1496
|
-
"type": "number | undefined"
|
|
1497
|
-
},
|
|
1498
|
-
{
|
|
1499
|
-
"name": "input",
|
|
1500
|
-
"tags": [],
|
|
1501
|
-
"docs": "",
|
|
1502
|
-
"complexTypes": [],
|
|
1503
|
-
"type": "string | undefined"
|
|
1504
|
-
}
|
|
1505
|
-
]
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
"name": "RegExp",
|
|
1509
|
-
"slug": "regexp",
|
|
1510
|
-
"docs": "",
|
|
1511
|
-
"tags": [],
|
|
1512
|
-
"methods": [
|
|
1513
|
-
{
|
|
1514
|
-
"name": "exec",
|
|
1515
|
-
"signature": "(string: string) => RegExpExecArray | null",
|
|
1516
|
-
"parameters": [
|
|
1517
|
-
{
|
|
1518
|
-
"name": "string",
|
|
1519
|
-
"docs": "The String object or string literal on which to perform the search.",
|
|
1520
|
-
"type": "string"
|
|
1521
|
-
}
|
|
1522
|
-
],
|
|
1523
|
-
"returns": "RegExpExecArray | null",
|
|
1524
|
-
"tags": [
|
|
1525
|
-
{
|
|
1526
|
-
"name": "param",
|
|
1527
|
-
"text": "string The String object or string literal on which to perform the search."
|
|
1528
|
-
}
|
|
1529
|
-
],
|
|
1530
|
-
"docs": "Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.",
|
|
1531
|
-
"complexTypes": [
|
|
1532
|
-
"RegExpExecArray"
|
|
1533
|
-
],
|
|
1534
|
-
"slug": "exec"
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
"name": "test",
|
|
1538
|
-
"signature": "(string: string) => boolean",
|
|
1539
|
-
"parameters": [
|
|
1540
|
-
{
|
|
1541
|
-
"name": "string",
|
|
1542
|
-
"docs": "String on which to perform the search.",
|
|
1543
|
-
"type": "string"
|
|
1544
|
-
}
|
|
1545
|
-
],
|
|
1546
|
-
"returns": "boolean",
|
|
1547
|
-
"tags": [
|
|
1548
|
-
{
|
|
1549
|
-
"name": "param",
|
|
1550
|
-
"text": "string String on which to perform the search."
|
|
1551
|
-
}
|
|
1552
|
-
],
|
|
1553
|
-
"docs": "Returns a Boolean value that indicates whether or not a pattern exists in a searched string.",
|
|
1554
|
-
"complexTypes": [],
|
|
1555
|
-
"slug": "test"
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"name": "compile",
|
|
1559
|
-
"signature": "() => this",
|
|
1560
|
-
"parameters": [],
|
|
1561
|
-
"returns": "this",
|
|
1562
|
-
"tags": [],
|
|
1563
|
-
"docs": "",
|
|
1564
|
-
"complexTypes": [],
|
|
1565
|
-
"slug": "compile"
|
|
1566
|
-
}
|
|
1567
|
-
],
|
|
1568
|
-
"properties": [
|
|
1569
|
-
{
|
|
1570
|
-
"name": "source",
|
|
1571
|
-
"tags": [],
|
|
1572
|
-
"docs": "Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.",
|
|
1573
|
-
"complexTypes": [],
|
|
1574
|
-
"type": "string"
|
|
1575
|
-
},
|
|
1576
|
-
{
|
|
1577
|
-
"name": "global",
|
|
1578
|
-
"tags": [],
|
|
1579
|
-
"docs": "Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.",
|
|
1580
|
-
"complexTypes": [],
|
|
1581
|
-
"type": "boolean"
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "ignoreCase",
|
|
1585
|
-
"tags": [],
|
|
1586
|
-
"docs": "Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only.",
|
|
1587
|
-
"complexTypes": [],
|
|
1588
|
-
"type": "boolean"
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
"name": "multiline",
|
|
1592
|
-
"tags": [],
|
|
1593
|
-
"docs": "Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only.",
|
|
1594
|
-
"complexTypes": [],
|
|
1595
|
-
"type": "boolean"
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
"name": "lastIndex",
|
|
1599
|
-
"tags": [],
|
|
1600
|
-
"docs": "",
|
|
1601
|
-
"complexTypes": [],
|
|
1602
|
-
"type": "number"
|
|
1603
|
-
}
|
|
1604
|
-
]
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
"name": "RegExpExecArray",
|
|
1608
|
-
"slug": "regexpexecarray",
|
|
1609
|
-
"docs": "",
|
|
1610
|
-
"tags": [],
|
|
1611
|
-
"methods": [],
|
|
1612
|
-
"properties": [
|
|
1613
|
-
{
|
|
1614
|
-
"name": "index",
|
|
1615
|
-
"tags": [],
|
|
1616
|
-
"docs": "",
|
|
1617
|
-
"complexTypes": [],
|
|
1618
|
-
"type": "number"
|
|
1619
|
-
},
|
|
1620
|
-
{
|
|
1621
|
-
"name": "input",
|
|
1622
|
-
"tags": [],
|
|
1623
|
-
"docs": "",
|
|
1624
|
-
"complexTypes": [],
|
|
1625
|
-
"type": "string"
|
|
1626
|
-
}
|
|
1627
|
-
]
|
|
1628
|
-
},
|
|
1629
1002
|
{
|
|
1630
1003
|
"name": "PluginListenerHandle",
|
|
1631
1004
|
"slug": "pluginlistenerhandle",
|
|
@@ -1842,7 +1215,7 @@
|
|
|
1842
1215
|
"docs": "",
|
|
1843
1216
|
"types": [
|
|
1844
1217
|
{
|
|
1845
|
-
"text": "(state:
|
|
1218
|
+
"text": "(state: object): void",
|
|
1846
1219
|
"complexTypes": []
|
|
1847
1220
|
}
|
|
1848
1221
|
]
|
|
@@ -17,7 +17,7 @@ export interface BtnEvent {
|
|
|
17
17
|
}
|
|
18
18
|
export type UrlChangeListener = (state: UrlEvent) => void;
|
|
19
19
|
export type ConfirmBtnListener = (state: BtnEvent) => void;
|
|
20
|
-
export type ButtonNearListener = (state:
|
|
20
|
+
export type ButtonNearListener = (state: object) => void;
|
|
21
21
|
export declare enum BackgroundColor {
|
|
22
22
|
WHITE = "white",
|
|
23
23
|
BLACK = "black"
|
|
@@ -223,13 +223,13 @@ export interface OpenWebViewOptions {
|
|
|
223
223
|
*
|
|
224
224
|
* @since 6.6.0
|
|
225
225
|
*/
|
|
226
|
-
preShowScript?:
|
|
226
|
+
preShowScript?: string;
|
|
227
227
|
/**
|
|
228
228
|
* proxyRequests is a regex expression. Please see [this pr](https://github.com/Cap-go/capacitor-inappbrowser/pull/222) for more info. (Android only)
|
|
229
229
|
*
|
|
230
230
|
* @since 6.9.0
|
|
231
231
|
*/
|
|
232
|
-
proxyRequests?:
|
|
232
|
+
proxyRequests?: string;
|
|
233
233
|
/**
|
|
234
234
|
* buttonNearDone allows for a creation of a custom button. Please see [buttonNearDone.md](/buttonNearDone.md) for more info.
|
|
235
235
|
*
|
|
@@ -238,11 +238,11 @@ export interface OpenWebViewOptions {
|
|
|
238
238
|
buttonNearDone?: {
|
|
239
239
|
ios: {
|
|
240
240
|
iconType: "sf-symbol" | "asset";
|
|
241
|
-
icon:
|
|
241
|
+
icon: string;
|
|
242
242
|
};
|
|
243
243
|
android: {
|
|
244
244
|
iconType: "asset";
|
|
245
|
-
icon:
|
|
245
|
+
icon: string;
|
|
246
246
|
width?: number;
|
|
247
247
|
height?: number;
|
|
248
248
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AACD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;IACf,2BAAY,CAAA;AACd,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB","sourcesContent":["import type { PluginListenerHandle } from \"@capacitor/core\";\n\nexport interface UrlEvent {\n /**\n * Emit when the url changes\n *\n * @since 0.0.1\n */\n url: string;\n}\nexport interface BtnEvent {\n /**\n * Emit when a button is clicked.\n *\n * @since 0.0.1\n */\n url: string;\n}\n\nexport type UrlChangeListener = (state: UrlEvent) => void;\nexport type ConfirmBtnListener = (state: BtnEvent) => void;\nexport type ButtonNearListener = (state: {}) => void;\n\nexport enum BackgroundColor {\n WHITE = \"white\",\n BLACK = \"black\",\n}\nexport enum ToolBarType {\n ACTIVITY = \"activity\",\n NAVIGATION = \"navigation\",\n BLANK = \"blank\",\n DEFAULT = \"\",\n}\n\nexport interface Headers {\n [key: string]: string;\n}\n\nexport interface GetCookieOptions {\n url: string;\n includeHttpOnly?: boolean;\n}\n\nexport interface ClearCookieOptions {\n url: string;\n}\n\nexport interface Credentials {\n username: string;\n password: string;\n}\n\nexport interface OpenOptions {\n /**\n * Target URL to load.\n * @since 0.1.0\n */\n url: string;\n /**\n * Headers to send with the request.\n * @since 0.1.0\n */\n headers?: Headers;\n /**\n * Credentials to send with the request and all subsequent requests for the same host.\n * @since 6.1.0\n */\n credentials?: Credentials;\n /**\n * if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.\n * @since 0.1.0\n */\n isPresentAfterPageLoad?: boolean;\n preventDeeplink?: boolean;\n}\n\nexport interface DisclaimerOptions {\n title: string;\n message: string;\n confirmBtn: string;\n cancelBtn: string;\n}\n\nexport interface OpenWebViewOptions {\n /**\n * Target URL to load.\n * @since 0.1.0\n */\n url: string;\n /**\n * Headers to send with the request.\n * @since 0.1.0\n */\n headers?: Headers;\n /**\n * Credentials to send with the request and all subsequent requests for the same host.\n * @since 6.1.0\n */\n credentials?: Credentials;\n /**\n * share options\n * @since 0.1.0\n */\n shareDisclaimer?: DisclaimerOptions;\n /**\n * Toolbar type\n * @since 0.1.0\n * @default ToolBarType.DEFAULT\n */\n toolbarType?: ToolBarType;\n /**\n * Share subject\n * @since 0.1.0\n */\n shareSubject?: string;\n /**\n * Title of the browser\n * @since 0.1.0\n * @default 'New Window'\n */\n title?: string;\n /**\n * Background color of the browser, only on IOS\n * @since 0.1.0\n * @default BackgroundColor.BLACK\n */\n backgroundColor?: BackgroundColor;\n /**\n * If true, active the native navigation within the webview, Android only\n *\n * @default false\n */\n activeNativeNavigationForWebview?: boolean;\n /**\n * Disable the possibility to go back on native application,\n * usefull to force user to stay on the webview, Android only\n *\n * @default false\n */\n disableGoBackOnNativeApplication?: boolean;\n /**\n * Open url in a new window fullscreen\n *\n * isPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.\n * @since 0.1.0\n * @default false\n */\n isPresentAfterPageLoad?: boolean;\n /**\n * Whether the website in the webview is inspectable or not, ios only\n *\n * @default false\n */\n isInspectable?: boolean;\n /**\n * Whether the webview opening is animated or not, ios only\n *\n * @default true\n */\n isAnimated?: boolean;\n /**\n * Shows a reload button that reloads the web page\n * @since 1.0.15\n * @default false\n */\n showReloadButton?: boolean;\n /**\n * CloseModal: if true a confirm will be displayed when user clicks on close button, if false the browser will be closed immediately.\n *\n * @since 1.1.0\n * @default false\n */\n closeModal?: boolean;\n /**\n * CloseModalTitle: title of the confirm when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Close'\n */\n closeModalTitle?: string;\n /**\n * CloseModalDescription: description of the confirm when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Are you sure you want to close this window?'\n */\n closeModalDescription?: string;\n /**\n * CloseModalOk: text of the confirm button when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Close'\n */\n closeModalOk?: string;\n /**\n * CloseModalCancel: text of the cancel button when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Cancel'\n */\n closeModalCancel?: string;\n /**\n * visibleTitle: if true the website title would be shown else shown empty\n *\n * @since 1.2.5\n * @default true\n */\n visibleTitle?: boolean;\n /**\n * toolbarColor: color of the toolbar in hex format\n *\n * @since 1.2.5\n * @default '#ffffff''\n */\n toolbarColor?: string;\n /**\n * showArrow: if true an arrow would be shown instead of cross for closing the window\n *\n * @since 1.2.5\n * @default false\n */\n showArrow?: boolean;\n /**\n * ignoreUntrustedSSLError: if true, the webview will ignore untrusted SSL errors allowing the user to view the website.\n *\n * @since 6.1.0\n * @default false\n */\n ignoreUntrustedSSLError?: boolean;\n /**\n * preShowScript: if isPresentAfterPageLoad is true and this variable is set the plugin will inject a script before showing the browser.\n * This script will be run in an async context. The plugin will wait for the script to finish (max 10 seconds)\n *\n * @since 6.6.0\n */\n preShowScript?: String;\n /**\n * proxyRequests is a regex expression. Please see [this pr](https://github.com/Cap-go/capacitor-inappbrowser/pull/222) for more info. (Android only)\n *\n * @since 6.9.0\n */\n proxyRequests?: String;\n /**\n * buttonNearDone allows for a creation of a custom button. Please see [buttonNearDone.md](/buttonNearDone.md) for more info.\n *\n * @since 6.7.0\n */\n buttonNearDone?: {\n ios: {\n iconType: \"sf-symbol\" | \"asset\";\n icon: String;\n };\n android: {\n iconType: \"asset\";\n icon: String;\n width?: number;\n height?: number;\n };\n };\n}\n\nexport interface InAppBrowserPlugin {\n /**\n * Open url in a new window fullscreen\n *\n * @since 0.1.0\n */\n open(options: OpenOptions): Promise<any>;\n\n /**\n * Clear cookies of url\n *\n * @since 0.5.0\n */\n clearCookies(options: ClearCookieOptions): Promise<any>;\n /**\n * Clear all cookies\n *\n * @since 6.5.0\n */\n clearAllCookies(): Promise<any>;\n\n /**\n * Clear cache\n *\n * @since 6.5.0\n */\n clearCache(): Promise<any>;\n\n /**\n * Get cookies for a specific URL.\n * @param options The options, including the URL to get cookies for.\n * @returns A promise that resolves with the cookies.\n */\n getCookies(options: GetCookieOptions): Promise<Record<string, string>>;\n /**\n * Close the webview.\n */\n close(): Promise<any>;\n /**\n * Open url in a new webview with toolbars, and enhanced capabilities, like camera access, file access, listen events, inject javascript, bi directional communication, etc.\n *\n * @since 0.1.0\n */\n openWebView(options: OpenWebViewOptions): Promise<any>;\n /**\n * Injects JavaScript code into the InAppBrowser window.\n */\n executeScript({ code }: { code: string }): Promise<void>;\n /**\n * Sends an event to the webview(inappbrowser). you can listen to this event in the inappbrowser JS with window.addListener(\"messageFromNative\", listenerFunc: (event: Record<string, any>) => void)\n * detail is the data you want to send to the webview, it's a requirement of Capacitor we cannot send direct objects\n * Your object has to be serializable to JSON, so no functions or other non-JSON-serializable types are allowed.\n */\n postMessage(options: { detail: Record<string, any> }): Promise<void>;\n /**\n * Sets the URL of the webview.\n */\n setUrl(options: { url: string }): Promise<any>;\n /**\n * Listen for url change, only for openWebView\n *\n * @since 0.0.1\n */\n addListener(\n eventName: \"urlChangeEvent\",\n listenerFunc: UrlChangeListener,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: \"buttonNearDoneClick\",\n listenerFunc: ButtonNearListener,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Listen for close click only for openWebView\n *\n * @since 0.4.0\n */\n addListener(\n eventName: \"closeEvent\",\n listenerFunc: UrlChangeListener,\n ): Promise<PluginListenerHandle>;\n /**\n * Will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS\n *\n * @since 0.0.1\n */\n addListener(\n eventName: \"confirmBtnClicked\",\n listenerFunc: ConfirmBtnListener,\n ): Promise<PluginListenerHandle>;\n /**\n * Will be triggered when event is sent from webview(inappbrowser), to send an event to the main app use window.mobileApp.postMessage({ \"detail\": { \"message\": \"myMessage\" } })\n * detail is the data you want to send to the main app, it's a requirement of Capacitor we cannot send direct objects\n * Your object has to be serializable to JSON, no functions or other non-JSON-serializable types are allowed.\n *\n * This method is inject at runtime in the webview\n */\n addListener(\n eventName: \"messageFromWebview\",\n listenerFunc: (event: { detail: Record<string, any> }) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Will be triggered when page is loaded\n */\n addListener(\n eventName: \"browserPageLoaded\",\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Will be triggered when page load error\n */\n addListener(\n eventName: \"pageLoadError\",\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Remove all listeners for this plugin.\n *\n * @since 1.0.0\n */\n removeAllListeners(): Promise<void>;\n\n /**\n * Reload the current web page.\n *\n * @since 1.0.0\n */\n reload(): Promise<any>; // Add this line\n}\n"]}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AACD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,wCAAyB,CAAA;IACzB,8BAAe,CAAA;IACf,2BAAY,CAAA;AACd,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB","sourcesContent":["import type { PluginListenerHandle } from \"@capacitor/core\";\n\nexport interface UrlEvent {\n /**\n * Emit when the url changes\n *\n * @since 0.0.1\n */\n url: string;\n}\nexport interface BtnEvent {\n /**\n * Emit when a button is clicked.\n *\n * @since 0.0.1\n */\n url: string;\n}\n\nexport type UrlChangeListener = (state: UrlEvent) => void;\nexport type ConfirmBtnListener = (state: BtnEvent) => void;\nexport type ButtonNearListener = (state: object) => void;\n\nexport enum BackgroundColor {\n WHITE = \"white\",\n BLACK = \"black\",\n}\nexport enum ToolBarType {\n ACTIVITY = \"activity\",\n NAVIGATION = \"navigation\",\n BLANK = \"blank\",\n DEFAULT = \"\",\n}\n\nexport interface Headers {\n [key: string]: string;\n}\n\nexport interface GetCookieOptions {\n url: string;\n includeHttpOnly?: boolean;\n}\n\nexport interface ClearCookieOptions {\n url: string;\n}\n\nexport interface Credentials {\n username: string;\n password: string;\n}\n\nexport interface OpenOptions {\n /**\n * Target URL to load.\n * @since 0.1.0\n */\n url: string;\n /**\n * Headers to send with the request.\n * @since 0.1.0\n */\n headers?: Headers;\n /**\n * Credentials to send with the request and all subsequent requests for the same host.\n * @since 6.1.0\n */\n credentials?: Credentials;\n /**\n * if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.\n * @since 0.1.0\n */\n isPresentAfterPageLoad?: boolean;\n preventDeeplink?: boolean;\n}\n\nexport interface DisclaimerOptions {\n title: string;\n message: string;\n confirmBtn: string;\n cancelBtn: string;\n}\n\nexport interface OpenWebViewOptions {\n /**\n * Target URL to load.\n * @since 0.1.0\n */\n url: string;\n /**\n * Headers to send with the request.\n * @since 0.1.0\n */\n headers?: Headers;\n /**\n * Credentials to send with the request and all subsequent requests for the same host.\n * @since 6.1.0\n */\n credentials?: Credentials;\n /**\n * share options\n * @since 0.1.0\n */\n shareDisclaimer?: DisclaimerOptions;\n /**\n * Toolbar type\n * @since 0.1.0\n * @default ToolBarType.DEFAULT\n */\n toolbarType?: ToolBarType;\n /**\n * Share subject\n * @since 0.1.0\n */\n shareSubject?: string;\n /**\n * Title of the browser\n * @since 0.1.0\n * @default 'New Window'\n */\n title?: string;\n /**\n * Background color of the browser, only on IOS\n * @since 0.1.0\n * @default BackgroundColor.BLACK\n */\n backgroundColor?: BackgroundColor;\n /**\n * If true, active the native navigation within the webview, Android only\n *\n * @default false\n */\n activeNativeNavigationForWebview?: boolean;\n /**\n * Disable the possibility to go back on native application,\n * usefull to force user to stay on the webview, Android only\n *\n * @default false\n */\n disableGoBackOnNativeApplication?: boolean;\n /**\n * Open url in a new window fullscreen\n *\n * isPresentAfterPageLoad: if true, the browser will be presented after the page is loaded, if false, the browser will be presented immediately.\n * @since 0.1.0\n * @default false\n */\n isPresentAfterPageLoad?: boolean;\n /**\n * Whether the website in the webview is inspectable or not, ios only\n *\n * @default false\n */\n isInspectable?: boolean;\n /**\n * Whether the webview opening is animated or not, ios only\n *\n * @default true\n */\n isAnimated?: boolean;\n /**\n * Shows a reload button that reloads the web page\n * @since 1.0.15\n * @default false\n */\n showReloadButton?: boolean;\n /**\n * CloseModal: if true a confirm will be displayed when user clicks on close button, if false the browser will be closed immediately.\n *\n * @since 1.1.0\n * @default false\n */\n closeModal?: boolean;\n /**\n * CloseModalTitle: title of the confirm when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Close'\n */\n closeModalTitle?: string;\n /**\n * CloseModalDescription: description of the confirm when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Are you sure you want to close this window?'\n */\n closeModalDescription?: string;\n /**\n * CloseModalOk: text of the confirm button when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Close'\n */\n closeModalOk?: string;\n /**\n * CloseModalCancel: text of the cancel button when user clicks on close button, only on IOS\n *\n * @since 1.1.0\n * @default 'Cancel'\n */\n closeModalCancel?: string;\n /**\n * visibleTitle: if true the website title would be shown else shown empty\n *\n * @since 1.2.5\n * @default true\n */\n visibleTitle?: boolean;\n /**\n * toolbarColor: color of the toolbar in hex format\n *\n * @since 1.2.5\n * @default '#ffffff''\n */\n toolbarColor?: string;\n /**\n * showArrow: if true an arrow would be shown instead of cross for closing the window\n *\n * @since 1.2.5\n * @default false\n */\n showArrow?: boolean;\n /**\n * ignoreUntrustedSSLError: if true, the webview will ignore untrusted SSL errors allowing the user to view the website.\n *\n * @since 6.1.0\n * @default false\n */\n ignoreUntrustedSSLError?: boolean;\n /**\n * preShowScript: if isPresentAfterPageLoad is true and this variable is set the plugin will inject a script before showing the browser.\n * This script will be run in an async context. The plugin will wait for the script to finish (max 10 seconds)\n *\n * @since 6.6.0\n */\n preShowScript?: string;\n /**\n * proxyRequests is a regex expression. Please see [this pr](https://github.com/Cap-go/capacitor-inappbrowser/pull/222) for more info. (Android only)\n *\n * @since 6.9.0\n */\n proxyRequests?: string;\n /**\n * buttonNearDone allows for a creation of a custom button. Please see [buttonNearDone.md](/buttonNearDone.md) for more info.\n *\n * @since 6.7.0\n */\n buttonNearDone?: {\n ios: {\n iconType: \"sf-symbol\" | \"asset\";\n icon: string;\n };\n android: {\n iconType: \"asset\";\n icon: string;\n width?: number;\n height?: number;\n };\n };\n}\n\nexport interface InAppBrowserPlugin {\n /**\n * Open url in a new window fullscreen\n *\n * @since 0.1.0\n */\n open(options: OpenOptions): Promise<any>;\n\n /**\n * Clear cookies of url\n *\n * @since 0.5.0\n */\n clearCookies(options: ClearCookieOptions): Promise<any>;\n /**\n * Clear all cookies\n *\n * @since 6.5.0\n */\n clearAllCookies(): Promise<any>;\n\n /**\n * Clear cache\n *\n * @since 6.5.0\n */\n clearCache(): Promise<any>;\n\n /**\n * Get cookies for a specific URL.\n * @param options The options, including the URL to get cookies for.\n * @returns A promise that resolves with the cookies.\n */\n getCookies(options: GetCookieOptions): Promise<Record<string, string>>;\n /**\n * Close the webview.\n */\n close(): Promise<any>;\n /**\n * Open url in a new webview with toolbars, and enhanced capabilities, like camera access, file access, listen events, inject javascript, bi directional communication, etc.\n *\n * @since 0.1.0\n */\n openWebView(options: OpenWebViewOptions): Promise<any>;\n /**\n * Injects JavaScript code into the InAppBrowser window.\n */\n executeScript({ code }: { code: string }): Promise<void>;\n /**\n * Sends an event to the webview(inappbrowser). you can listen to this event in the inappbrowser JS with window.addListener(\"messageFromNative\", listenerFunc: (event: Record<string, any>) => void)\n * detail is the data you want to send to the webview, it's a requirement of Capacitor we cannot send direct objects\n * Your object has to be serializable to JSON, so no functions or other non-JSON-serializable types are allowed.\n */\n postMessage(options: { detail: Record<string, any> }): Promise<void>;\n /**\n * Sets the URL of the webview.\n */\n setUrl(options: { url: string }): Promise<any>;\n /**\n * Listen for url change, only for openWebView\n *\n * @since 0.0.1\n */\n addListener(\n eventName: \"urlChangeEvent\",\n listenerFunc: UrlChangeListener,\n ): Promise<PluginListenerHandle>;\n\n addListener(\n eventName: \"buttonNearDoneClick\",\n listenerFunc: ButtonNearListener,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Listen for close click only for openWebView\n *\n * @since 0.4.0\n */\n addListener(\n eventName: \"closeEvent\",\n listenerFunc: UrlChangeListener,\n ): Promise<PluginListenerHandle>;\n /**\n * Will be triggered when user clicks on confirm button when disclaimer is required, works only on iOS\n *\n * @since 0.0.1\n */\n addListener(\n eventName: \"confirmBtnClicked\",\n listenerFunc: ConfirmBtnListener,\n ): Promise<PluginListenerHandle>;\n /**\n * Will be triggered when event is sent from webview(inappbrowser), to send an event to the main app use window.mobileApp.postMessage({ \"detail\": { \"message\": \"myMessage\" } })\n * detail is the data you want to send to the main app, it's a requirement of Capacitor we cannot send direct objects\n * Your object has to be serializable to JSON, no functions or other non-JSON-serializable types are allowed.\n *\n * This method is inject at runtime in the webview\n */\n addListener(\n eventName: \"messageFromWebview\",\n listenerFunc: (event: { detail: Record<string, any> }) => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Will be triggered when page is loaded\n */\n addListener(\n eventName: \"browserPageLoaded\",\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n\n /**\n * Will be triggered when page load error\n */\n addListener(\n eventName: \"pageLoadError\",\n listenerFunc: () => void,\n ): Promise<PluginListenerHandle>;\n /**\n * Remove all listeners for this plugin.\n *\n * @since 1.0.0\n */\n removeAllListeners(): Promise<void>;\n\n /**\n * Reload the current web page.\n *\n * @since 1.0.0\n */\n reload(): Promise<any>; // Add this line\n}\n"]}
|
|
@@ -23,24 +23,22 @@ extension UIColor {
|
|
|
23
23
|
* here: https://capacitorjs.com/docs/plugins/ios
|
|
24
24
|
*/
|
|
25
25
|
@objc(InAppBrowserPlugin)
|
|
26
|
-
public class InAppBrowserPlugin: CAPPlugin {
|
|
26
|
+
public class InAppBrowserPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
27
27
|
public let identifier = "InAppBrowserPlugin"
|
|
28
28
|
public let jsName = "InAppBrowser"
|
|
29
29
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
30
|
+
CAPPluginMethod(name: "open", returnType: CAPPluginReturnPromise),
|
|
30
31
|
CAPPluginMethod(name: "openWebView", returnType: CAPPluginReturnPromise),
|
|
31
32
|
CAPPluginMethod(name: "clearCookies", returnType: CAPPluginReturnPromise),
|
|
32
33
|
CAPPluginMethod(name: "getCookies", returnType: CAPPluginReturnPromise),
|
|
33
34
|
CAPPluginMethod(name: "clearAllCookies", returnType: CAPPluginReturnPromise),
|
|
34
35
|
CAPPluginMethod(name: "clearCache", returnType: CAPPluginReturnPromise),
|
|
35
36
|
CAPPluginMethod(name: "reload", returnType: CAPPluginReturnPromise),
|
|
36
|
-
CAPPluginMethod(name: "open", returnType: CAPPluginReturnPromise),
|
|
37
37
|
CAPPluginMethod(name: "setUrl", returnType: CAPPluginReturnPromise),
|
|
38
38
|
CAPPluginMethod(name: "show", returnType: CAPPluginReturnPromise),
|
|
39
39
|
CAPPluginMethod(name: "close", returnType: CAPPluginReturnPromise),
|
|
40
|
-
CAPPluginMethod(name: "hide", returnType: CAPPluginReturnPromise),
|
|
41
40
|
CAPPluginMethod(name: "executeScript", returnType: CAPPluginReturnPromise),
|
|
42
|
-
CAPPluginMethod(name: "postMessage", returnType: CAPPluginReturnPromise)
|
|
43
|
-
CAPPluginMethod(name: "insertCSS", returnType: CAPPluginReturnPromise)
|
|
41
|
+
CAPPluginMethod(name: "postMessage", returnType: CAPPluginReturnPromise)
|
|
44
42
|
]
|
|
45
43
|
var navigationWebViewController: UINavigationController?
|
|
46
44
|
private var privacyScreen: UIImageView?
|