@ionic-native/open-native-settings
Advanced tools
Comparing version 4.4.2 to 5.0.0-alpha.3
@@ -91,3 +91,3 @@ import { IonicNativePlugin } from '@ionic-native/core'; | ||
*/ | ||
export declare class OpenNativeSettings extends IonicNativePlugin { | ||
export declare class OpenNativeSettingsOriginal extends IonicNativePlugin { | ||
/** | ||
@@ -100,1 +100,3 @@ * Opens a setting dialog | ||
} | ||
export declare const OpenNativeSettings: OpenNativeSettingsOriginal; |
142
index.js
@@ -11,136 +11,18 @@ var __extends = (this && this.__extends) || (function () { | ||
})(); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; | ||
import { Injectable } from '@angular/core'; | ||
/** | ||
* @name Open Native Settings | ||
* @description | ||
* Plugin to open native screens of iOS/android settings | ||
* @usage | ||
* You can open any of these settings: | ||
* ``` | ||
* "about", // ios | ||
"accessibility", // ios, android | ||
"account", // ios, android | ||
"airplane_mode", // ios, android | ||
"apn", // android | ||
"application_details", // ios, android | ||
"application_development", // android | ||
"application", // android | ||
"autolock", // ios | ||
"battery_optimization", // android | ||
"bluetooth", // ios, android | ||
"castle", // ios | ||
"captioning", // android | ||
"cast", // android | ||
"cellular_usage", // ios | ||
"configuration_list", // ios | ||
"data_roaming", // android | ||
"date", // ios, android | ||
"display", // ios, android | ||
"dream", // android | ||
"facetime", // ios | ||
"home", // android | ||
"keyboard", // ios, android | ||
"keyboard_subtype", // android | ||
"locale", // ios, android | ||
"location", // ios, android | ||
"locations", // ios | ||
"manage_all_applications", // android | ||
"manage_applications", // android | ||
"memory_card", // android | ||
"music", // ios | ||
"music_equalizer", // ios | ||
"music_volume", // ios | ||
"network", // ios, android | ||
"nike_ipod", // ios | ||
"nfcsharing", // android | ||
"nfc_payment", // android | ||
"nfc_settings", // android | ||
"notes", // ios | ||
"notification_id", // ios | ||
"passbook", // ios | ||
"phone", // ios | ||
"photos", // ios | ||
"print", // android | ||
"privacy", // android | ||
"quick_launch", // android | ||
"reset", // ios | ||
"ringtone", // ios | ||
"browser", // ios | ||
"search", // ios, android | ||
"security", // android | ||
"settings", // ios, android | ||
"show_regulatory_info", | ||
"sound", // ios, android | ||
"software_update", // ios | ||
"storage", // ios, android | ||
"store", // ios, android | ||
"sync", // android | ||
"tethering", // ios | ||
"twitter", // ios | ||
"touch", // ios | ||
"usage", // ios, android | ||
"user_dictionary", // android | ||
"video", // ios | ||
"voice_input", // android | ||
"vpn", // ios | ||
"wallpaper", // ios | ||
"wifi_ip", // android | ||
"wifi", // ios, android | ||
"wireless" // android | ||
``` | ||
* ```typescript | ||
* import { OpenNativeSettings } from '@ionic-native/open-native-settings'; | ||
* | ||
* | ||
* constructor(private openNativeSettings: OpenNativeSettings) { } | ||
* | ||
* ... | ||
* | ||
* | ||
* ``` | ||
*/ | ||
var OpenNativeSettings = (function (_super) { | ||
import { IonicNativePlugin, cordova, injectable } from '@ionic-native/core'; | ||
var OpenNativeSettingsOriginal = /** @class */ (function (_super) { | ||
__extends(OpenNativeSettings, _super); | ||
function OpenNativeSettings() { | ||
function OpenNativeSettingsOriginal() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
/** | ||
* Opens a setting dialog | ||
* @param setting {string} setting name | ||
* @return {Promise<any>} | ||
*/ | ||
OpenNativeSettings.prototype.open = function (setting) { return; }; | ||
OpenNativeSettings.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
OpenNativeSettings.ctorParameters = function () { return []; }; | ||
__decorate([ | ||
Cordova(), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String]), | ||
__metadata("design:returntype", Promise) | ||
], OpenNativeSettings.prototype, "open", null); | ||
OpenNativeSettings = __decorate([ | ||
Plugin({ | ||
pluginName: 'OpenNativeSettings', | ||
plugin: 'cordova-open-native-settings', | ||
pluginRef: 'cordova.plugins.settings', | ||
repo: 'https://github.com/guyromb/Cordova-open-native-settings', | ||
platforms: ['Android', 'iOS'] | ||
}) | ||
], OpenNativeSettings); | ||
return OpenNativeSettings; | ||
OpenNativeSettingsOriginal.prototype.open = function (setting) { return cordova(this, "open", {}, arguments); }; | ||
OpenNativeSettingsOriginal.pluginName = "OpenNativeSettings"; | ||
OpenNativeSettingsOriginal.plugin = "cordova-open-native-settings"; | ||
OpenNativeSettingsOriginal.pluginRef = "cordova.plugins.settings"; | ||
OpenNativeSettingsOriginal.repo = "https://github.com/guyromb/Cordova-open-native-settings"; | ||
OpenNativeSettingsOriginal.platforms = ["Android", "iOS"]; | ||
return OpenNativeSettingsOriginal; | ||
}(IonicNativePlugin)); | ||
var OpenNativeSettings = new OpenNativeSettingsOriginal(); | ||
export { OpenNativeSettings }; | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGx1Z2lucy9vcGVuLW5hdGl2ZS1zZXR0aW5ncy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsT0FBTywwQ0FBc0MsTUFBTSxvQkFBb0IsQ0FBQzs7SUFvR2hDLHNDQUFpQjs7OztJQVF2RCxpQ0FBSSxhQUFDLE9BQWU7Ozs7Ozs2QkE1R3RCO0V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xuIl19 |
@@ -1,18 +0,1 @@ | ||
{ | ||
"name": "@ionic-native/open-native-settings", | ||
"version": "4.4.2", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
"module": "index.js", | ||
"typings": "index.d.ts", | ||
"author": "ionic", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@ionic-native/core": "^4.2.0", | ||
"@angular/core": "*", | ||
"rxjs": "^5.0.1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ionic-team/ionic-native.git" | ||
} | ||
} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/open-native-settings","peerDependencies":{"rxjs":"^5.0.1","@ionic-native/core":"5.0.0-alpha.3"},"version":"5.0.0-alpha.3"} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
16352
2
5
161
2
1
0
1