◆ deinit()
static void com.maxst.ar.MaxstAR.deinit |
( |
| ) |
|
|
static |
Release AR engine resource
◆ getApplicationContext()
static Context com.maxst.ar.MaxstAR.getApplicationContext |
( |
| ) |
|
|
static |
◆ init()
static void com.maxst.ar.MaxstAR.init |
( |
Context |
context, |
|
|
String |
appKey |
|
) |
| |
|
static |
Initialize AR engine resource
- Parameters
-
context | application context |
appKey | app key for this app (this key is generated from developer.maxst.com) |
◆ isInitialized()
static boolean com.maxst.ar.MaxstAR.isInitialized |
( |
| ) |
|
|
static |
Check AR engine has been initialized
◆ onPause()
static void com.maxst.ar.MaxstAR.onPause |
( |
| ) |
|
|
static |
Called when application become inactive or go to background state. Disable rendering
◆ onResume()
static void com.maxst.ar.MaxstAR.onResume |
( |
| ) |
|
|
static |
Enable rendering and do internal AR settings
◆ onSurfaceChanged()
static void com.maxst.ar.MaxstAR.onSurfaceChanged |
( |
int |
viewWidth, |
|
|
int |
viewHeight |
|
) |
| |
|
static |
Called when rendering surface's size changed (i.e. orientation change, resizing rendering surface)
- Parameters
-
viewWidth | width size (pixel unit) |
viewHeight | height size (pixel unit) |
◆ onSurfaceCreated()
static void com.maxst.ar.MaxstAR.onSurfaceCreated |
( |
| ) |
|
|
static |
Called when surface created on rendering thread
◆ setScreenOrientation()
static void com.maxst.ar.MaxstAR.setScreenOrientation |
( |
int |
orientation | ) |
|
|
static |
Set device orientation
- Parameters
-
orientation | Screen orientation. 2 is Configuration.ORIENTATION_LANDSCAPE, 1 is Configuration.ORIENTATION_PORTRAIT |
The documentation for this class was generated from the following file:
- E:/Workspace/MaxstARSDK/Platform/MaxstARAndroid/MaxstAR/src/main/java/com/maxst/ar/MaxstAR.java