@capacitor/core
Advanced tools
Comparing version 0.0.11 to 0.0.16
@@ -102,3 +102,3 @@ import { Plugin, PluginListenerHandle } from './definitions'; | ||
*/ | ||
addListener(eventName: 'appRestoredResult', listenerFunc: (err: any, data: any) => void): PluginListenerHandle; | ||
addListener(eventName: 'appRestoredResult', listenerFunc: (err: any, data: AppRestoredResult) => void): PluginListenerHandle; | ||
} | ||
@@ -109,4 +109,16 @@ export interface AppState { | ||
export interface AppUrlOpen { | ||
/** | ||
* The URL the app was opened with | ||
*/ | ||
url: string; | ||
/** | ||
* The source application opening the app (iOS only) | ||
* https://developer.apple.com/documentation/uikit/uiapplicationopenurloptionskey/1623128-sourceapplication | ||
*/ | ||
iosSourceApplication?: any; | ||
/** | ||
* Whether the app should open the passed document in-place | ||
* or must copy it first. | ||
* https://developer.apple.com/documentation/uikit/uiapplicationopenurloptionskey/1623123-openinplace | ||
*/ | ||
iosOpenInPlace?: boolean; | ||
@@ -117,2 +129,17 @@ } | ||
} | ||
export interface AppRestoredResult { | ||
/** | ||
* The pluginId this result corresponds to. For example, `Camera`. | ||
*/ | ||
pluginId: string; | ||
/** | ||
* The methodName this result corresponds to. For example, `getPhoto` | ||
*/ | ||
methodName: string; | ||
/** | ||
* The result data passed from the plugin. This would be the result you'd | ||
* expect from normally calling the plugin method. For example, `CameraPhoto` | ||
*/ | ||
data: any; | ||
} | ||
export interface BrowserPlugin extends Plugin { | ||
@@ -119,0 +146,0 @@ /** |
{ | ||
"name": "@capacitor/core", | ||
"version": "0.0.11", | ||
"version": "0.0.16", | ||
"description": "Cordova: cross-platform mobile apps with the web", | ||
@@ -5,0 +5,0 @@ "homepage": "http://getcapacitor.com/", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82735
1892