Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active June 23, 2017 20: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 matthieu-D/fd065d1960dcfe4a15c75926c4a5ced6 to your computer and use it in GitHub Desktop.
Save matthieu-D/fd065d1960dcfe4a15c75926c4a5ced6 to your computer and use it in GitHub Desktop.
check deviceSupported
constructor(public platform: Platform) {
platform.ready().then(() => {
.
.
.
this.wikitudePlugin.isDeviceSupported(this.onDeviceSupported, this.onDeviceNotSupported, this.requiredFeatures);
});
}
onDeviceSupported () {
console.log('device supported');
}
onDeviceNotSupported () {
console.log('device not supported');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment