Table Of Contents

Previous topic

Drawable Class

Next topic

Engine Class

cn.easyar.engine.EasyAR Class

Deprecated in 2.1.0

initialize

Initializes EasyAR. EasyAR must be initialized before other functions start to work.

This method will automatically load EasyAR native libraries. If you desire more advanced control for native library loading, use initializeWithoutSoLibraryLoad instead.

Java (deprecated in EasyAR SDK 2.1.0): public static boolean initialize(Activity activity, String key, String soLibraryDir)
Java (deprecated in EasyAR SDK 2.1.0): public static boolean initialize(Activity activity, String key)

initializeWithoutSoLibraryLoad

Initializes EasyAR. EasyAR must be initialized before other functions start to work.

This method will not load EasyAR native libraries, make sure to load libraries by your own or using loadLibraries.

Java (deprecated in EasyAR SDK 2.1.0): public static boolean initializeWithoutSoLibraryLoad(Activity activity, String key)

onPause

Handles the app onPause, pauses internal tasks.

Java (deprecated in EasyAR SDK 2.1.0): public static void onPause()

onResume

Handles the app onResume, resumes internal tasks.

Java (deprecated in EasyAR SDK 2.1.0): public static void onResume()

setInternalRotateHandling

Enable/Disable the internal rotation handler. This is usefull when the default handler do not work as expected.

Java (deprecated in EasyAR SDK 2.1.0): public static void setInternalRotateHandling(boolean enable)

loadLibraries

Load native libraries, use only if you are using initializeWithoutSoLibraryLoad to initialize EasyAR.

Java (deprecated in EasyAR SDK 2.1.0): public static void loadLibraries()
Java (deprecated in EasyAR SDK 2.1.0): public static void loadLibraries(String soLibraryDir)