mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
refactor(DeviceAccounts):
This commit is contained in:
parent
c40fec7ae3
commit
6e8248a0b8
@ -1,4 +1,6 @@
|
|||||||
import {Cordova, Plugin} from './plugin';
|
import { Cordova, Plugin } from './plugin';
|
||||||
|
|
||||||
|
|
||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
|
plugin: 'https://github.com/loicknuchel/cordova-device-accounts.git',
|
||||||
pluginRef: 'plugins.DeviceAccounts',
|
pluginRef: 'plugins.DeviceAccounts',
|
||||||
@ -11,23 +13,23 @@ export class DeviceAccounts {
|
|||||||
* Gets all accounts registered on the Android Device
|
* Gets all accounts registered on the Android Device
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static get(): Promise<any> {return; }
|
static get(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all accounts registered on Android device for requested type
|
* Get all accounts registered on Android device for requested type
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static getByType(type: string): Promise<any> {return; }
|
static getByType(type: string): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all emails registered on Android device (accounts with 'com.google' type)
|
* Get all emails registered on Android device (accounts with 'com.google' type)
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static getEmails(): Promise<any> {return; }
|
static getEmails(): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the first email registered on Android device
|
* Get the first email registered on Android device
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static getEmail(): Promise<any> {return; }
|
static getEmail(): Promise<any> { return; }
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user