MaxstARSDK
com.maxst.ar.MaxstAR Class Reference
Collaboration diagram for com.maxst.ar.MaxstAR:
Collaboration graph

Static Public Member Functions

static String getVersion ()
 
static void init (Context context, String appKey)
 
static void deinit ()
 
static Context getApplicationContext ()
 Get ApplicationContext. More...
 
static boolean isInitialized ()
 
static void onResume ()
 
static void onPause ()
 
static void onSurfaceChanged (int viewWidth, int viewHeight)
 
static void setScreenOrientation (int orientation)
 

Member Function Documentation

◆ deinit()

static void com.maxst.ar.MaxstAR.deinit ( )
static

Release AR engine resource

Here is the caller graph for this function:

◆ getApplicationContext()

static Context com.maxst.ar.MaxstAR.getApplicationContext ( )
static

Get ApplicationContext.

Here is the caller graph for this function:

◆ getVersion()

static String com.maxst.ar.MaxstAR.getVersion ( )
static

Get sdk version.

Returns
Version string

◆ init()

static void com.maxst.ar.MaxstAR.init ( Context  context,
String  appKey 
)
static

Initialize AR engine resource

Parameters
contextapplication context
appKeyapp key for this app (this key is generated from developer.maxst.com)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isInitialized()

static boolean com.maxst.ar.MaxstAR.isInitialized ( )
static

Check AR engine has been initialized

Here is the caller graph for this function:

◆ 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
viewWidthwidth size (pixel unit)
viewHeightheight size (pixel unit)

◆ setScreenOrientation()

static void com.maxst.ar.MaxstAR.setScreenOrientation ( int  orientation)
static

Set device orientation

Parameters
orientationScreen orientation. 2 is Configuration.ORIENTATION_LANDSCAPE, 1 is Configuration.ORIENTATION_PORTRAIT

The documentation for this class was generated from the following file: