DefinitelyTyped/types/com.wikitude.phonegap.wikitudeplugin/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
Note that this *trivially* updates project urls by adding the NPM url to
the end, even when the urls are almost identical or the DT one is
outdated. I'll clean up the urls in a later commit.

This PR is unfinished! Please do not merge it yet.
2019-02-11 17:10:55 -08:00

83 lines
2.5 KiB
TypeScript

// Type definitions for com.wikitude.phonegap.wikitudeplugin 7.2
// Project: https://github.com/Wikitude/wikitude-cordova-plugin, https://github.com/wikitude/wikitude-phonegap
// Definitions by: zbarbuto <https://github.com/zbarbuto>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
// The following types are taken directly (unmodified) from the wikitude-ionic-3-starter-app
// https://github.com/pbreuss/wikitude-ionic-3-starter-app
// Latest commit at time of writing was 647cd546f6d1805765c4cee725566e246ca6259d
/**
* Wrapper for the Wikitude SDK Phonegap Plugin - to use with IONIC2
* (c) 2016 Schneeweis.Technology
*/
interface WikitudePlugin {
isDeviceSupported(
successCallback: (success: string) => void,
errorCallback: (message: string) => void,
requiredFeatures: [string]
): void;
loadARchitectWorld(
successCallback: (success: string) => void,
errorCallback: (message: string) => void,
architectWorldPath: string,
requiredFeatures: [string],
startupConfiguration: JSON | object
): void;
close(): void;
hide(): void;
show(): void;
// test type ok?
callJavaScript(js: any): void;
setOnUrlInvokeCallback(onUrlInvokeCallback: (success: string) => void): void;
setLocation(latitude: any, longitude: any, altitude: any, accuracy: any): void;
captureScreen(
successCallback: (success: string) => void,
errorCallback: (message: string) => void,
includeWebView: boolean,
imagePathInBundleOrNullForPhotoLibrary: string | null
): void;
setErrorHandler(errorHandler: (message: string) => void): void;
setDeviceSensorsNeedCalibrationHandler(
startCalibrationHandler: (message: string) => void
): void;
setDeviceSensorsFinishedCalibrationHandler(
finishedCalibrationHandler: (message: string) => void
): void;
setBackButtonCallback(onBackButtonCallback: (message: string) => void): void;
/* Lifecycle updates */
onResume(): void;
onBackButton(): void;
onPause(): void;
onWikitudeOK(): void;
onWikitudeError(): void;
_sdkKey: string;
FeatureGeo: string;
Feature2DTracking: string;
CameraPositionUndefined: number;
CameraPositionFront: number;
CameraPositionBack: number;
CameraFocusRangeNone: number;
CameraFocusRangeNear: number;
CameraFocusRangeFar: number;
}
declare var WikitudePlugin: WikitudePlugin;