awesome-cordova-plugins/src/plugins/deviceaccounts.ts

41 lines
1005 B
TypeScript
Raw Normal View History

2016-07-08 06:52:13 +08:00
import { Cordova, Plugin } from './plugin';
@Plugin({
pluginName: '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
* @returns {Promise<any>}
2016-07-08 06:52:13 +08:00
*/
@Cordova()
static get(): Promise<any> { return; }
/**
* Get all accounts registered on Android device for requested type
* @returns {Promise<any>}
2016-07-08 06:52:13 +08:00
*/
@Cordova()
static getByType(type: string): Promise<any> { return; }
/**
* Get all emails registered on Android device (accounts with 'com.google' type)
* @returns {Promise<any>}
2016-07-08 06:52:13 +08:00
*/
@Cordova()
static getEmails(): Promise<any> { return; }
/**
* Get the first email registered on Android device
* @returns {Promise<any>}
2016-07-08 06:52:13 +08:00
*/
@Cordova()
static getEmail(): Promise<any> { return; }
2016-07-08 06:52:13 +08:00
}