2016-04-30 04:09:13 +08:00
|
|
|
import {Cordova, Plugin} from './plugin';
|
|
|
|
@Plugin({
|
|
|
|
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
|
|
|
|
pluginRef: 'plugins.DeviceAccounts',
|
2016-04-30 05:28:26 +08:00
|
|
|
repo: 'https://github.com/loicknuchel/cordova-device-accounts',
|
|
|
|
platforms: ['Android']
|
2016-04-30 04:09:13 +08:00
|
|
|
})
|
|
|
|
export class DeviceAccounts {
|
|
|
|
|
2016-04-30 05:28:02 +08:00
|
|
|
/**
|
|
|
|
* Gets all accounts registered on the Android Device
|
|
|
|
*/
|
2016-04-30 04:09:13 +08:00
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static get(): Promise<any> {return; }
|
2016-04-30 04:09:13 +08:00
|
|
|
|
2016-04-30 05:28:02 +08:00
|
|
|
/**
|
|
|
|
* Get all accounts registered on Android device for requested type
|
|
|
|
*/
|
2016-04-30 04:09:13 +08:00
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getByType(type: string): Promise<any> {return; }
|
2016-04-30 04:09:13 +08:00
|
|
|
|
2016-04-30 05:28:02 +08:00
|
|
|
/**
|
|
|
|
* Get all emails registered on Android device (accounts with 'com.google' type)
|
|
|
|
*/
|
2016-04-30 04:09:13 +08:00
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getEmails(): Promise<any> {return; }
|
2016-04-30 04:09:13 +08:00
|
|
|
|
2016-04-30 05:28:02 +08:00
|
|
|
/**
|
|
|
|
* Get the first email registered on Android device
|
|
|
|
*/
|
2016-04-30 04:09:13 +08:00
|
|
|
@Cordova()
|
2016-04-30 11:56:49 +08:00
|
|
|
static getEmail(): Promise<any> {return; }
|
2016-04-30 04:09:13 +08:00
|
|
|
}
|