ionic-native
Version:
Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support
54 lines • 2.18 kB
JavaScript
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;
};
import { Cordova, Plugin } from './plugin';
export var DeviceAccounts = (function () {
function DeviceAccounts() {
}
/**
* Gets all accounts registered on the Android Device
* @returns {Promise<any>}
*/
DeviceAccounts.get = function () { return; };
/**
* Get all accounts registered on Android device for requested type
* @returns {Promise<any>}
*/
DeviceAccounts.getByType = function (type) { return; };
/**
* Get all emails registered on Android device (accounts with 'com.google' type)
* @returns {Promise<any>}
*/
DeviceAccounts.getEmails = function () { return; };
/**
* Get the first email registered on Android device
* @returns {Promise<any>}
*/
DeviceAccounts.getEmail = function () { return; };
__decorate([
Cordova()
], DeviceAccounts, "get", null);
__decorate([
Cordova()
], DeviceAccounts, "getByType", null);
__decorate([
Cordova()
], DeviceAccounts, "getEmails", null);
__decorate([
Cordova()
], DeviceAccounts, "getEmail", null);
DeviceAccounts = __decorate([
Plugin({
pluginName: 'DeviceAccounts',
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
pluginRef: 'plugins.DeviceAccounts',
repo: 'https://github.com/loicknuchel/cordova-device-accounts',
platforms: ['Android']
})
], DeviceAccounts);
return DeviceAccounts;
}());
//# sourceMappingURL=deviceaccounts.js.map