MaxstAR Native Android
5.0.2
|
MaxstAR class handles the lifecycle of MAXST AR.
MaxstAR class handles the lifecycle of MAXST AR such as initilization, release, resume and pause.
Static Public Member Functions | |
static String | getVersion () |
Get the version of the MAXST AR engine. More... | |
static void | init (Context context, String appKey) |
Initialize the MAXST AR engine. After initialization, other API can called. More... | |
static void | deinit () |
Release the MAXST AR engine. Called at the end of an Android app. More... | |
static Context | getApplicationContext () |
Get ApplicationContext which is registered by the init function. More... | |
static boolean | isInitialized () |
Check whether the MAXST AR engine has been initialized successfully. More... | |
static void | onResume () |
Handle onResume of an Android app. Perform internal settings and Enable rendering. More... | |
static void | onPause () |
Handle onPause of an Android app. Disable rendering after this function is called. More... | |
static void | onSurfaceChanged (int viewWidth, int viewHeight) |
Handle onSurfaceChanged of an Android app. Called when the rendering surface's size changed (i.e. orientation change, resizing rendering surface) More... | |
static void | setScreenOrientation (int orientation) |
Set the screen orientation. More... | |
|
static |
Release the MAXST AR engine. Called at the end of an Android app.
|
static |
Get ApplicationContext which is registered by the init function.
|
static |
Get the version of the MAXST AR engine.
|
static |
Initialize the MAXST AR engine. After initialization, other API can called.
context | application context |
appKey | the license key of the current app (this key is generated from developer.maxst.com) |
|
static |
Check whether the MAXST AR engine has been initialized successfully.
|
static |
Handle onPause of an Android app. Disable rendering after this function is called.
|
static |
Handle onResume of an Android app. Perform internal settings and Enable rendering.
|
static |
Handle onSurfaceChanged of an Android app. Called when the rendering surface's size changed (i.e. orientation change, resizing rendering surface)
viewWidth | surface width size in pixel unit. The value should |
viewHeight | surface height size in pixel unit. |
|
static |
Set the screen orientation.
orientation | Screen orientation. 1 is Configuration.ORIENTATION_PORTRAIT, 2 is Configuration.ORIENTATION_LANDSCAPE |