2016-07-08 06:52:13 +08:00
|
|
|
import { Cordova, Plugin } from './plugin';
|
|
|
|
|
|
|
|
|
|
|
|
@Plugin({
|
2016-10-18 09:33:17 +08:00
|
|
|
name: 'DeviceAccounts',
|
2016-07-08 06:52:13 +08:00
|
|
|
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
|
|
|
|
pluginRef: 'plugins.DeviceAccounts',
|
|
|
|
repo: 'https://github.com/loicknuchel/cordova-device-accounts',
|
|
|
|
platforms: ['Android']
|
|
|
|
})
|
|
|
|
export class DeviceAccounts {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets all accounts registered on the Android Device
|
|
|
|
*/
|
|
|
|
@Cordova()
|
|
|
|
static get(): Promise<any> { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get all accounts registered on Android device for requested type
|
|
|
|
*/
|
|
|
|
@Cordova()
|
|
|
|
static getByType(type: string): Promise<any> { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get all emails registered on Android device (accounts with 'com.google' type)
|
|
|
|
*/
|
|
|
|
@Cordova()
|
|
|
|
static getEmails(): Promise<any> { return; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the first email registered on Android device
|
|
|
|
*/
|
|
|
|
@Cordova()
|
|
|
|
static getEmail(): Promise<any> { return; }
|
2016-07-20 23:17:09 +08:00
|
|
|
|
2016-07-08 06:52:13 +08:00
|
|
|
}
|