WTInstantTrackerDelegate Protocol Reference

Declared in WTInstantTracker.h

Overview

Matrix pointer that are provided inside the WTInstantTarget objects are only valid in the current method scope. If they are needed at a later point in time, they have to be copied into different memory that is controlled by the Wikitude Native SDK hosting application.

– instantTracker:didChangeState: required method

Called whenever a tracker changes its state internally as a result of calling setActiveInstantTrackingState: on it.

- (void)instantTracker:(nonnull WTInstantTracker *)instantTracker didChangeState:(WTInstantTrackingState)newState

Parameters

instantTracker

The tracker object whose state changed

newState

The new state of the tracker

Declared In

WTInstantTracker.h

– instantTracker:didChangeInitializationPose: required method

Called whenever an initialization update is being sent by the instant tracker. The tracking data can be used to draw gravity a aligned plane or other augmentations while the tracker is in the initialization state.

- (void)instantTracker:(nonnull WTInstantTracker *)instantTracker didChangeInitializationPose:(nonnull WTInitializationPose *)pose

Parameters

instantTracker

The tracker object that sent the initialization update.

pose

Information about the gravity aligned plane

Declared In

WTInstantTracker.h

– instantTrackerDidStartTracking: required method

Called whenever a tracker starts tracking the scene for the first time or after it was lost.

- (void)instantTrackerDidStartTracking:(nonnull WTInstantTracker *)instantTracker

Parameters

instantTracker

The tracker object that recognized the scene

Declared In

WTInstantTracker.h

– instantTracker:didTrack: required method

Called whenever the current scene is being tracked again.

- (void)instantTracker:(nonnull WTInstantTracker *)instantTracker didTrack:(nonnull WTInstantTarget *)target

Parameters

instantTracker

The tracker object that tracked scene

target

Information about the scene being tracked

Declared In

WTInstantTracker.h

– instantTrackerDidStopTracking: required method

Called whenever the current scene is lost

- (void)instantTrackerDidStopTracking:(nonnull WTInstantTracker *)instantTracker

Parameters

instantTracker

The tracker object that lost the scene.

Discussion

All WTInstantTarget matrix pointer are set to nullptr and should not be used.

Declared In

WTInstantTracker.h