-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathionic-native-plugin.js
More file actions
60 lines (60 loc) · 1.71 KB
/
ionic-native-plugin.js
File metadata and controls
60 lines (60 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import { checkAvailability } from './decorators/common';
import { get } from './util';
var IonicNativePlugin = /** @class */ (function () {
function IonicNativePlugin() {
}
/**
* Returns a boolean that indicates whether the plugin is installed
* @return {boolean}
*/
IonicNativePlugin.installed = function () {
var isAvailable = checkAvailability(this.pluginRef) === true;
return isAvailable;
};
/**
* Returns the original plugin object
*/
IonicNativePlugin.getPlugin = function () {
if (typeof window !== 'undefined') {
return get(window, this.pluginRef);
}
return null;
};
/**
* Returns the plugin's name
*/
IonicNativePlugin.getPluginName = function () {
var pluginName = this.pluginName;
return pluginName;
};
/**
* Returns the plugin's reference
*/
IonicNativePlugin.getPluginRef = function () {
var pluginRef = this.pluginRef;
return pluginRef;
};
/**
* Returns the plugin's install name
*/
IonicNativePlugin.getPluginInstallName = function () {
var plugin = this.plugin;
return plugin;
};
/**
* Returns the plugin's supported platforms
*/
IonicNativePlugin.getSupportedPlatforms = function () {
var platform = this.platforms;
return platform;
};
IonicNativePlugin.pluginName = '';
IonicNativePlugin.pluginRef = '';
IonicNativePlugin.plugin = '';
IonicNativePlugin.repo = '';
IonicNativePlugin.platforms = [];
IonicNativePlugin.install = '';
return IonicNativePlugin;
}());
export { IonicNativePlugin };
//# sourceMappingURL=ionic-native-plugin.js.map