feat(linkedin): add getActiveSession method

closes #1570
This commit is contained in:
Ibby Hadeed 2017-05-17 06:36:04 -04:00
parent 277b2b15e6
commit 4c8deb2bed

View File

@ -100,10 +100,17 @@ export class LinkedIn extends IonicNativePlugin {
openProfile(memberId: string): Promise<any> { return; }
/**
* Checks if there is already an existing active session. This should be used to avoid unecessary login.
* Checks if there is already an existing active session. This should be used to avoid unnecessary login.
* @return {Promise<boolean>} returns a promise that resolves with a boolean that indicates whether there is an active session
*/
@Cordova()
hasActiveSession(): Promise<boolean> { return; }
/**
* Checks if there is an active session and returns the access token if it exists.
* @return {Promise<any>} returns a promise that resolves with an object that contains an access token if there is an active session
*/
@Cordova()
getActiveSession(): Promise<any> { return; }
}