Android ARMOD API

OnCreateUI

Build the UI on the AR Window
1
public abstract void onCreateUI();
Copied!

InitARMOD

Initialize ARMOD SDK with configuration information. This method will call InitARMODModule automatically.
Name
Type
Description
appconfigure
String
This is a json string. Use to init our sdk and authentication
Class
Activity
View displayed after closing ARMOD
1
public void initARMOD(String _appConfigure, Class<?> _activity)
Copied!

FetchProject

Query the ARExperience projecct by project uid.
Name
Type
Description
_projectUid
NSString
The project uid is the unique id of each ARExperience.
Can be used for retrieval, etc.
1
public void fetchProject(String _projectUid)
Copied!

FetchProjectByImage(unavailable)

Query the ARExperience projecct by image recognized
1
public void fetchProjectByImage()
Copied!

UnloadAndHideARMOD

Unload current ARMOD Window
1
public void unloadAndHideARMOD()
Copied!

GetARMODFrameLayout

Get current ARMOD FrameLayout. You can call this method to get frame layout and addition you custom UIs.
Return: current ARMOD's framelayout
1
public FrameLayout getARMODFrameLayout()
Copied!

GetLayoutInflater

Instantiates a layout XML file into its corresponding android.view.View objects. It is never used directly. Instead, useandroid.app.Activity#getLayoutInflater() or Context#getSystemService to retrieve a standard LayoutInflater instance that is already hooked up to the current context and correctly configured for the device you are running on. To create a new LayoutInflater with an additional Factory for your own views, you can use cloneInContext to clone an existing ViewFactory, and then call setFactory on it to include your Factory. For performance reasons, view inflation relies heavily on pre-processing of XML files that is done at build time. Therefore, it is not currently possible to use LayoutInflater with an XmlPullParser over a plain XML file at runtime; it only works with an XmlPullParser returned from a compiled resource
1
public LayoutInflater getLayoutInflater()
Copied!

SetUIInterfaceOrientation

Set the ar view to follow the orientation of the app itself
Name
Type
Description
orientation
String
Current app's orientation
1
public void setUIInterfaceOrientation(String _orientationId)
Copied!

CleanCache

Clean ARExperiences cache in the device
1
public void cleanCache()
Copied!
Last modified 6mo ago