refactor(googleplus):

This commit is contained in:
Guille 2016-07-08 01:08:59 +02:00
parent be3c579c49
commit 3e0b2c5b32

View File

@ -1,4 +1,5 @@
import {Plugin, Cordova} from './plugin';
import { Cordova, Plugin } from './plugin';
/**
* @name Google Plus
@ -22,25 +23,25 @@ export class GooglePlus {
* @param options
*/
@Cordova()
static login(options?: any): Promise<any> {return; }
static login(options?: any): Promise<any> { return; }
/**
* You can call trySilentLogin to check if they're already signed in to the app and sign them in silently if they are.
* @param options
*/
@Cordova()
static trySilentLogin(options?: any): Promise<any> {return; }
static trySilentLogin(options?: any): Promise<any> { return; }
/**
* This will clear the OAuth2 token.
*/
@Cordova()
static logout(): Promise<any> {return; }
static logout(): Promise<any> { return; }
/**
* This will clear the OAuth2 token, forget which account was used to login, and disconnect that account from the app. This will require the user to allow the app access again next time they sign in. Be aware that this effect is not always instantaneous. It can take time to completely disconnect.
*/
@Cordova()
static disconnect(): Promise<any> {return; }
static disconnect(): Promise<any> { return; }
}
}