fix(launch-navigator): fix the navigate function wrapper to match latest plugin API
This commit is contained in:
parent
de14b0ea15
commit
6f625f9222
@ -44,6 +44,11 @@ export interface LaunchNavigatorOptions {
|
|||||||
*/
|
*/
|
||||||
navigationMode?: string;
|
navigationMode?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start point of the navigation
|
||||||
|
*/
|
||||||
|
start?: string|number[];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -73,18 +78,16 @@ export class LaunchNavigator {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Launches navigator app
|
* Launches navigator app
|
||||||
* @param destination Location name or coordinates
|
* @param destination {string|number[]} Location name or coordinates
|
||||||
* @param start Location name or coordinates
|
* @param options {LaunchNavigatorOptions}
|
||||||
* @param options
|
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova({
|
@Cordova({
|
||||||
successIndex: 2,
|
successIndex: 1,
|
||||||
errorIndex: 3
|
errorIndex: 2
|
||||||
})
|
})
|
||||||
static navigate(
|
static navigate(
|
||||||
destination: any,
|
destination: string|number[],
|
||||||
start: any = null,
|
|
||||||
options?: LaunchNavigatorOptions
|
options?: LaunchNavigatorOptions
|
||||||
): Promise<any> { return; }
|
): Promise<any> { return; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user