MaxstARSDK  3.5.0
All Classes Functions Variables
Static Public Member Functions | List of all members
com.maxst.ar.MaxstAR Class Reference

Static Public Member Functions

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

Detailed Description

Definition at line 8 of file MaxstAR.java.

Member Function Documentation

◆ deinit()

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

Release AR engine resource

Definition at line 22 of file MaxstAR.java.

◆ 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)

Definition at line 15 of file MaxstAR.java.

◆ isInitialized()

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

Check AR engine has been initialized

Definition at line 33 of file MaxstAR.java.

◆ onPause()

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

Called when application become inactive or go to background state. Disable rendering

Definition at line 48 of file MaxstAR.java.

◆ onResume()

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

Enable rendering and do internal AR settings

Definition at line 40 of file MaxstAR.java.

◆ 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)

Definition at line 57 of file MaxstAR.java.

◆ 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

Definition at line 66 of file MaxstAR.java.


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