API Docs

From WakingApp SDKs
Jump to: navigation, search

TrackerAPI

Sets a class which implements <ARCameraDelegate> The ViewController deriving from ARCameraViewController is set as the default delegate.

+(void)setTrackDelegate:(id)delegate;


Sets the traget image to be tracked. Image file must reside in the Assets folder.

+(void)setTargetImageFromFile:(char*)fileName;


Sets the traget image to be tracked.

+(void)setTargetImageFromMemory:(NSData*)data;


Sets the tile image to be displayed on top of the tracked image. Image file must reside in the Assets folder.

+(void)setTileImageFromFile:(char*)fileName;


Sets the tile image to be displayed on top of the tracked image.

+(void)setTileImageFromMemory:(NSData*)data;


Returns the resolution the camera was opened in.

+(CGSize)getCameraResolution;

ARCameraDelegate

An event that gets fired every time tracking has been found.

-(void)onTrackFound;

An event that gets fired every time tracking has been lost.

-(void)onTrackLost;

An event that gets fired every camera frame.

  • yBuffer contains the camera image Y channel (luma).
  • uvBuffer contains the camera image UV channel (chroma).
-(void)onCameraFrame:(NSData*)yBuffer : (NSData*)uvBuffer;