From 52ca0ab424896628ee2a7ca5d49e178440eccd77 Mon Sep 17 00:00:00 2001 From: Roberto Garrido Date: Mon, 16 Apr 2018 16:56:36 +0200 Subject: [PATCH] Added a setNativeTime method to the ARkitWrapper that receives the current ARFrame timestamp. It is meant to be called 10 times from the iOS side. --- polyfill/platform/ARKitWrapper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polyfill/platform/ARKitWrapper.js b/polyfill/platform/ARKitWrapper.js index fa7ad6f..4b22f3d 100644 --- a/polyfill/platform/ARKitWrapper.js +++ b/polyfill/platform/ARKitWrapper.js @@ -146,6 +146,10 @@ export default class ARKitWrapper extends EventHandlerBase { window['onComputerVisionData'] = (detail) => { this._onComputerVisionData(detail); } + + window['setNativeTime'] = (detail) => { + console.log(detail.nativeTime) + } /** * The result of a raycast into the AR world encoded as a transform matrix.