1 | import { checkAvailability, getPlugin } from './common';
|
2 | export function cordovaPropertyGet(pluginObj, key) {
|
3 | if (checkAvailability(pluginObj, key) === true) {
|
4 | return getPlugin(pluginObj.constructor.getPluginRef())[key];
|
5 | }
|
6 | return null;
|
7 | }
|
8 | export function cordovaPropertySet(pluginObj, key, value) {
|
9 | if (checkAvailability(pluginObj, key) === true) {
|
10 | getPlugin(pluginObj.constructor.getPluginRef())[key] = value;
|
11 | }
|
12 | }
|
13 | //# sourceMappingURL=cordova-property.js.map |
\ | No newline at end of file |