MaxstAR Native iOS  5.0.2
List of all members | Class Methods | Protected Attributes
MasMaxstAR Class Reference

Description

MasMaxstAR class handles the lifecycle of MAXST AR.

MasMaxstAR class handles the lifecycle of MAXST AR such as initilization, release, resume and pause.

Inherits NSObject typedef public enum MasScreenOrientation.

Class Methods

(void) + setLicenseKey
 Set a license key for MAXST AR engine. More...
 
(void) + deinit
 Release the MAXST AR engine. Called at the end of an iOS app. More...
 
(bool) + isInitialized
 Check whether the MAXST AR engine has been initialized successfully. More...
 
(void) + onSurfaceChanged
 Called when the rendering surface's size changed (i.e. orientation change, resizing rendering surface) More...
 
(void) + setScreenOrientation
 Set the screen orientation. More...
 

Protected Attributes

 UNKNOWN = 0
 
 PORTRAIT = 1
 
 PORTRAIT_UP = 1
 
 PORTRAIT_DOWN = 2
 
 LANDSCAPE = 3
 
 LANDSCAPE_LEFT = 3
 
 LANDSCAPE_RIGHT
 

Method Documentation

◆ deinit

+ (void) deinit

Release the MAXST AR engine. Called at the end of an iOS app.

◆ isInitialized

+ (bool) isInitialized

Check whether the MAXST AR engine has been initialized successfully.

◆ onSurfaceChanged

+ (void) onSurfaceChanged: (int)  viewWidth
height: (int)  viewHeight 

Called when the rendering surface's size changed (i.e. orientation change, resizing rendering surface)

Parameters
viewWidthsurface width size in pixel unit. The value should
viewHeightsurface height size in pixel unit.

◆ setLicenseKey

+ (void) setLicenseKey: (NSString*)  appKey

Set a license key for MAXST AR engine.

Parameters
appKeythe license key of the current app (this key is generated from developer.maxst.com)

◆ setScreenOrientation

+ (void) setScreenOrientation: (MasScreenOrientation)  orientation

Set the screen orientation.

Parameters
orientationScreen orientation.

Member Data Documentation

◆ LANDSCAPE

- LANDSCAPE = 3
protected

◆ LANDSCAPE_LEFT

- LANDSCAPE_LEFT = 3
protected

◆ LANDSCAPE_RIGHT

- LANDSCAPE_RIGHT
protected
Initial value:
= 4
}

◆ PORTRAIT

- PORTRAIT = 1
protected

◆ PORTRAIT_DOWN

- PORTRAIT_DOWN = 2
protected

◆ PORTRAIT_UP

- PORTRAIT_UP = 1
protected

◆ UNKNOWN

- UNKNOWN = 0
protected