File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 6
6
// Copyright (c) Microsoft Open Technologies Inc
7
7
// Licensed under the MIT license.
8
8
// TypeScript Version: 2.3
9
- type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message" ;
9
+ type channel = "loadstart" | "loadstop" | "loaderror" | "exit" | "message" | "customscheme" ;
10
10
11
11
interface Window {
12
12
/**
@@ -40,6 +40,13 @@ interface InAppBrowser extends Window {
40
40
* passed an InAppBrowserEvent object as a parameter.
41
41
*/
42
42
addEventListener ( type : channel , callback : InAppBrowserEventListenerOrEventListenerObject ) : void ;
43
+ /**
44
+ * Adds a listener for an event from the InAppBrowser.
45
+ * @param type any custom event that might occur.
46
+ * @param callback the function that executes when the event fires. The function is
47
+ * passed an InAppBrowserEvent object as a parameter.
48
+ */
49
+ addEventListener ( type : string , callback : InAppBrowserEventListenerOrEventListenerObject ) : void ;
43
50
// removeEventListener overloads
44
51
/**
45
52
* Removes a listener for an event from the InAppBrowser.
You can’t perform that action at this time.
0 commit comments