UNPKG

2.27 kBJavaScriptView Raw
1"use strict";
2var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5 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;
6 return c > 3 && r && Object.defineProperty(target, key, r), r;
7};
8var plugin_1 = require('./plugin');
9var DeviceAccounts = (function () {
10 function DeviceAccounts() {
11 }
12 /**
13 * Gets all accounts registered on the Android Device
14 * @returns {Promise<any>}
15 */
16 DeviceAccounts.get = function () { return; };
17 /**
18 * Get all accounts registered on Android device for requested type
19 * @returns {Promise<any>}
20 */
21 DeviceAccounts.getByType = function (type) { return; };
22 /**
23 * Get all emails registered on Android device (accounts with 'com.google' type)
24 * @returns {Promise<any>}
25 */
26 DeviceAccounts.getEmails = function () { return; };
27 /**
28 * Get the first email registered on Android device
29 * @returns {Promise<any>}
30 */
31 DeviceAccounts.getEmail = function () { return; };
32 __decorate([
33 plugin_1.Cordova()
34 ], DeviceAccounts, "get", null);
35 __decorate([
36 plugin_1.Cordova()
37 ], DeviceAccounts, "getByType", null);
38 __decorate([
39 plugin_1.Cordova()
40 ], DeviceAccounts, "getEmails", null);
41 __decorate([
42 plugin_1.Cordova()
43 ], DeviceAccounts, "getEmail", null);
44 DeviceAccounts = __decorate([
45 plugin_1.Plugin({
46 pluginName: 'DeviceAccounts',
47 plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
48 pluginRef: 'plugins.DeviceAccounts',
49 repo: 'https://github.com/loicknuchel/cordova-device-accounts',
50 platforms: ['Android']
51 })
52 ], DeviceAccounts);
53 return DeviceAccounts;
54}());
55exports.DeviceAccounts = DeviceAccounts;
56//# sourceMappingURL=deviceaccounts.js.map
\No newline at end of file