From 4891a73b795b046912a9ce115197f47e5cb87d7c Mon Sep 17 00:00:00 2001 From: Roberto Garrido Date: Wed, 25 Apr 2018 16:14:47 +0200 Subject: [PATCH] register a callback for when the user allows/denies accessing world sensing data. --- polyfill/platform/ARKitWrapper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polyfill/platform/ARKitWrapper.js b/polyfill/platform/ARKitWrapper.js index a96233f..d5b74fc 100644 --- a/polyfill/platform/ARKitWrapper.js +++ b/polyfill/platform/ARKitWrapper.js @@ -124,7 +124,8 @@ export default class ARKitWrapper extends EventHandlerBase { ['arkitWindowResize', ARKitWrapper.WINDOW_RESIZE_EVENT], ['onError', ARKitWrapper.ON_ERROR], ['arTrackingChanged', ARKitWrapper.AR_TRACKING_CHANGED], - ['userGrantedComputerVisionData', ARKitWrapper.USER_GRANTED_COMPUTER_VISION_DATA] + ['userGrantedComputerVisionData', ARKitWrapper.USER_GRANTED_COMPUTER_VISION_DATA], + ['userGrantedWorldSensingData', ARKitWrapper.USER_GRANTED_WORLD_SENSING_DATA] //,['onComputerVisionData', ARKitWrapper.COMPUTER_VISION_DATA] ] for(let i=0; i < eventCallbacks.length; i++){ @@ -1231,6 +1232,7 @@ ARKitWrapper.ON_ERROR = 'on-error' ARKitWrapper.AR_TRACKING_CHANGED = 'ar_tracking_changed' ARKitWrapper.COMPUTER_VISION_DATA = 'cv_data' ARKitWrapper.USER_GRANTED_COMPUTER_VISION_DATA = 'user-granted-cv-data' +ARKitWrapper.USER_GRANTED_WORLD_SENSING_DATA = 'user-granted-world-sensing-data' // ARKit Detection Image Orientations ARKitWrapper.ORIENTATION_UP = 1 // 0th row at top, 0th column on left - default orientation