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

33 lines
880 B
TypeScript
Raw Normal View History

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',
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()
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()
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()
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()
static getEmail(): Promise<any> {return; }
2016-04-30 04:09:13 +08:00
}