cordova-plugin-advanced-background-mode
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "cordova-plugin-advanced-background-mode", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Prevent apps from going to sleep in background.", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -18,3 +18,3 @@ /// <reference path="interfaces/options.d.ts" /> | ||
static setDefaults(override: Options); | ||
static setDefaults(override: Options, callback?: () => void); | ||
@@ -21,0 +21,0 @@ static configure(override: Options); |
@@ -107,3 +107,3 @@ /* | ||
*/ | ||
exports.setDefaults = function (overrides) | ||
exports.setDefaults = function (overrides, fn) | ||
{ | ||
@@ -122,3 +122,3 @@ var defaults = this.getDefaults(); | ||
{ | ||
cordova.exec(null, null, 'BackgroundMode', 'configure', [defaults, false]); | ||
cordova.exec((fn || function () {}), null, 'BackgroundMode', 'configure', [defaults, false]); | ||
} | ||
@@ -125,0 +125,0 @@ }; |
Sorry, the diff of this file is not supported yet
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
184853