Skip to content

Commit

Permalink
fix(launch-navigator): fix the navigate function wrapper to match lat…
Browse files Browse the repository at this point in the history
…est plugin API
  • Loading branch information
ihadeed committed Jul 17, 2016
1 parent de14b0e commit 6f625f9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/plugins/launchnavigator.ts
Expand Up @@ -44,6 +44,11 @@ export interface LaunchNavigatorOptions {
*/
navigationMode?: string;

/**
* Start point of the navigation
*/
start?: string|number[];

}

/**
Expand Down Expand Up @@ -73,18 +78,16 @@ export class LaunchNavigator {

/**
* Launches navigator app
* @param destination Location name or coordinates
* @param start Location name or coordinates
* @param options
* @param destination {string|number[]} Location name or coordinates
* @param options {LaunchNavigatorOptions}
* @returns {Promise<any>}
*/
@Cordova({
successIndex: 2,
errorIndex: 3
successIndex: 1,
errorIndex: 2
})
static navigate(
destination: any,
start: any = null,
destination: string|number[],
options?: LaunchNavigatorOptions
): Promise<any> { return; }

Expand Down

0 comments on commit 6f625f9

Please sign in to comment.