capacitor-custom-tabs
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -10,3 +10,5 @@ declare global { | ||
customScheme?: string; | ||
}, response?: Function): void; | ||
}): Promise<{ | ||
value: string; | ||
}>; | ||
view(options: { | ||
@@ -13,0 +15,0 @@ url: string; |
@@ -6,3 +6,5 @@ import { ICustomTabsPlugin } from './definitions'; | ||
customScheme?: string; | ||
}, response: Function): void; | ||
}): Promise<{ | ||
value: string; | ||
}>; | ||
view(options: { | ||
@@ -9,0 +11,0 @@ url: string; |
import { Plugins } from '@capacitor/core'; | ||
const { CustomTabsPlugin } = Plugins; | ||
export class CustomTabs { | ||
show(options, response) { | ||
CustomTabsPlugin.show(options, response); | ||
show(options) { | ||
return CustomTabsPlugin.show(options); | ||
} | ||
@@ -7,0 +7,0 @@ view(options) { |
@@ -10,3 +10,5 @@ import { WebPlugin } from '@capacitor/core'; | ||
customScheme?: string; | ||
}, response?: Function): void; | ||
}): Promise<{ | ||
value: string; | ||
}>; | ||
constructor(); | ||
@@ -13,0 +15,0 @@ } |
@@ -8,5 +8,6 @@ import { WebPlugin } from '@capacitor/core'; | ||
} | ||
show(options, response) { | ||
console.log(options); | ||
console.log(response); | ||
show(options) { | ||
return new Promise(() => { | ||
console.log(options); | ||
}); | ||
} | ||
@@ -13,0 +14,0 @@ constructor() { |
{ | ||
"name": "capacitor-custom-tabs", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
854834
80