Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created July 7, 2015 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattdeboard/0366714f9521a5acec39 to your computer and use it in GitHub Desktop.
Save mattdeboard/0366714f9521a5acec39 to your computer and use it in GitHub Desktop.
var Shim = {
context: {
onLocationChanged: function() {
console.log("Location changed!");
}
},
activateDebugMode: function() {
console.log("Debug mode activated!");
},
ClientTracker: function(path, callback) {
console.log("ClientTracker instantiated with path: " + path);
callback.onLoaded();
},
ImageResource: function() {
console.log("ImageResource instantiated.");
},
ImageDrawable: function() {
console.log("ImageDrawable instantiated.");
},
Trackable2DObject: function() {
console.log("Trackable2DObject instantiated.");
},
GeoLocation: function(lat, lon, altitude) {
console.log("GeoLocation instantiated with lat/lon/alt: " + [lat, lon, altitude].join());
},
GeoObject: function(markerLocation, config) {
console.log("GeoObject instantiated");
},
};
module.exports = window.AR || Shim;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment