Add DeviceAccounts plugin

This commit is contained in:
Rajkiran Panuganti
2016-04-29 13:09:13 -07:00
parent e73c99b28a
commit 31c298b556
2 changed files with 36 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
import {Cordova, Plugin} from './plugin';
declare var window;
@Plugin({
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
pluginRef: 'plugins.DeviceAccounts',
repo: 'https://github.com/loicknuchel/cordova-device-accounts.git'
})
export class DeviceAccounts {
/**
* Gets all accounts registered on the Android Device
*/
@Cordova()
static get() : Promise<any> {return}
/**
* Get all accounts registred on Android device for requested type
*/
@Cordova()
static getByType(type: string) : Promise<any> {return}
/**
* Get all emails registred on Android device (accounts with 'com.google' type)
*/
@Cordova()
static getEmails() : Promise<any> {return}
/**
* Get the first email registred on Android device
*/
@Cordova()
static getEmail() : Promise<any> {return}
}