By DMurdock
on Thu, 04/04/2013 - 17:06
I need a simple way to detect when a target has been found or lost, analogous to the onTrackingFound() and onTrackingLost() callbacks in the Unity api (in fact those would be perfect). Unfortunately that trackable event handler only seems to exist for Unity? Is there an equivalent set of callbacks in the iOS api that will allow me to easily and simply alert other class objects to the detection of a target in the target database?
Thanks!
TrackableEventHandler equivalent for iOS
Sorry, this does not exist at the moment, but please log this as a feature request if you want the dev team to consider it in future.
thanks
N
TrackableEventHandler equivalent for iOS
Hi Nalin, thanks for your reply.
Can you please recommend an approach to reliably achieve this in iOS? I've been looking at putting some checks in -(void)renderFrameQCAR, but I don't know if this would be the best approach.
TrackableEventHandler equivalent for iOS
Hi,
The simplest way to achieve this would be to keep track of the number of trackable results in renderFrameQCAR(), which you can see here:
TrackableEventHandler equivalent for iOS
Thanks Nalin, that will work great. Appreciate your help.
TrackableEventHandler equivalent for iOS
Hi i've been using a similar aproach to what you describe, and it works perfect when calling the notification.